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 Type
    Method
    Description
    boolean
    protectEntity(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 attacked
      armor - Armor item
      cause - Optional cause of attack, such as a bee effect identifier
      doProtect - Whether or not to actually do the side effects of protection
      Returns:
      Whether or not the armor should protect the player from that attack