All Implemented Interfaces:
org.geysermc.geyser.api.entity.type.GeyserEntity, Leashable

public class PiglinEntity extends BasePiglinEntity
  • Constructor Details

    • PiglinEntity

      public PiglinEntity(GeyserSession session, int entityId, long geyserId, UUID uuid, EntityDefinition<?> definition, org.cloudburstmc.math.vector.Vector3f position, org.cloudburstmc.math.vector.Vector3f motion, float yaw, float pitch, float headYaw)
  • Method Details

    • setBaby

      public void setBaby(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.type.BooleanEntityMetadata entityMetadata)
    • setChargingCrossbow

      public void setChargingCrossbow(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.type.BooleanEntityMetadata entityMetadata)
    • setDancing

      public void setDancing(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.type.BooleanEntityMetadata entityMetadata)
    • setHand

      public void setHand(org.geysermc.mcprotocollib.protocol.data.game.item.ItemStack stack)
      Overrides:
      setHand in class LivingEntity
    • updateMainHand

      public void updateMainHand(GeyserSession session)
      Overrides:
      updateMainHand in class LivingEntity
    • updateOffHand

      public void updateOffHand(GeyserSession session)
      Overrides:
      updateOffHand in class LivingEntity
    • testMobInteraction

      protected @NonNull InteractiveTag testMobInteraction(@NonNull org.geysermc.mcprotocollib.protocol.data.game.entity.player.Hand hand, @NonNull GeyserItemStack itemInHand)
      Overrides:
      testMobInteraction in class MobEntity
    • mobInteract

      protected @NonNull InteractionResult mobInteract(@NonNull org.geysermc.mcprotocollib.protocol.data.game.entity.player.Hand hand, @NonNull GeyserItemStack itemInHand)
      Overrides:
      mobInteract in class MobEntity