Package forestry.api.apiculture
Interface IArmorApiarist
public interface IArmorApiarist
When implemented as a capability by armor items, protects the wearer from negative bee effects.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanprotectEntity(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.item.ItemStack armor, IBeeEffect cause, boolean doProtect) Called when the apiarist's armor acts as protection against an attack.
-
Method Details
-
protectEntity
boolean protectEntity(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.item.ItemStack armor, @Nullable IBeeEffect cause, boolean doProtect) Called when the apiarist's armor acts as protection against an attack.- Parameters:
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- Returns:
- Whether or not the armor should protect the player from that attack
-