Interface Piglin

All Superinterfaces:
Ageable, Attributable, CommandSender, Creature, Damageable, Entity, LivingEntity, Lootable, Metadatable, Mob, Monster, Nameable, Permissible, PersistentDataHolder, PiglinAbstract, ProjectileSource, ServerOperator

public interface Piglin
extends PiglinAbstract
Represents a Piglin.
  • Method Details

    • isAbleToHunt

      boolean isAbleToHunt()
      Get whether the piglin is able to hunt hoglins.
      Returns:
      Whether the piglin is able to hunt hoglins
    • setIsAbleToHunt

      void setIsAbleToHunt​(boolean flag)
      Sets whether the piglin is able to hunt hoglins.
      Parameters:
      flag - Whether the piglin is able to hunt hoglins.