public interface IArmorApiarist
ApicultureCapabilities.ARMOR_APIARIST| 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.
|
boolean protectEntity(net.minecraft.entity.EntityLivingBase entity,
net.minecraft.item.ItemStack armor,
@Nullable
java.lang.String cause,
boolean doProtect)
entity - 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