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

public class WolfEntity extends TameableEntity
  • Constructor Details

    • WolfEntity

      public WolfEntity(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

    • setTameableFlags

      public void setTameableFlags(com.github.steveice10.mc.protocol.data.game.entity.metadata.type.ByteEntityMetadata entityMetadata)
      Overrides:
      setTameableFlags in class TameableEntity
    • setCollarColor

      public void setCollarColor(com.github.steveice10.mc.protocol.data.game.entity.metadata.type.IntEntityMetadata entityMetadata)
    • setWolfAngerTime

      public void setWolfAngerTime(com.github.steveice10.mc.protocol.data.game.entity.metadata.type.IntEntityMetadata entityMetadata)
    • canEat

      public boolean canEat(Item item)
      Overrides:
      canEat in class AnimalEntity
      Returns:
      true if this is a valid item to breed with for this animal.
    • canBeLeashed

      protected boolean canBeLeashed()
      Overrides:
      canBeLeashed in class TameableEntity
    • testMobInteraction

      protected @NonNull InteractiveTag testMobInteraction(@NonNull com.github.steveice10.mc.protocol.data.game.entity.player.Hand hand, @NonNull GeyserItemStack itemInHand)
      Overrides:
      testMobInteraction in class AnimalEntity
    • mobInteract

      protected @NonNull InteractionResult mobInteract(@NonNull com.github.steveice10.mc.protocol.data.game.entity.player.Hand hand, @NonNull GeyserItemStack itemInHand)
      Overrides:
      mobInteract in class AnimalEntity