public class ArmorApiarist extends java.lang.Object implements IArmorApiarist
| Modifier and Type | Field and Description |
|---|---|
static ArmorApiarist |
INSTANCE |
| Modifier | Constructor and Description |
|---|---|
protected |
ArmorApiarist() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
protectEntity(net.minecraft.entity.EntityLivingBase entity,
net.minecraft.item.ItemStack armor,
java.lang.String cause,
boolean doProtect)
Called when the apiarist's armor acts as protection against an attack.
|
public static final ArmorApiarist INSTANCE
public boolean protectEntity(net.minecraft.entity.EntityLivingBase entity,
net.minecraft.item.ItemStack armor,
@Nullable
java.lang.String cause,
boolean doProtect)
IArmorApiaristprotectEntity in interface IArmorApiaristentity - Entity being attackedarmor - Armor itemcause - Optional cause of attack, such as a bee effect identifierdoProtect - Whether or not to actually do the side effects of protection