Class AbstractHorseEntity

All Implemented Interfaces:
org.geysermc.geyser.api.entity.type.GeyserEntity, Leashable
Direct Known Subclasses:
CamelEntity, ChestedHorseEntity, HorseEntity, SkeletonHorseEntity, ZombieHorseEntity

public class AbstractHorseEntity extends AnimalEntity
  • Constructor Details

    • AbstractHorseEntity

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

    • getContainerBaseSize

      protected int getContainerBaseSize()
    • spawnEntity

      public void spawnEntity()
      Overrides:
      spawnEntity in class Entity
    • setHorseFlags

      public void setHorseFlags(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.type.ByteEntityMetadata entityMetadata)
    • getFoodTag

      protected @Nullable Tag<Item> getFoodTag()
      Specified by:
      getFoodTag in class AnimalEntity
      Returns:
      the tag associated with this animal for eating food. Null for nothing or different behavior.
    • testMobInteraction

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

      protected final @NonNull InteractiveTag testHorseInteraction(@NonNull org.geysermc.mcprotocollib.protocol.data.game.entity.player.Hand hand, @NonNull GeyserItemStack itemInHand)
    • mobInteract

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

      protected final @NonNull InteractionResult mobHorseInteract(@NonNull org.geysermc.mcprotocollib.protocol.data.game.entity.player.Hand hand, @NonNull GeyserItemStack itemInHand)
    • testSaddle

      protected boolean testSaddle(@NonNull GeyserItemStack itemInHand)
    • testForChest

      protected boolean testForChest(@NonNull GeyserItemStack itemInHand)
    • additionalTestForInventoryOpen

      protected boolean additionalTestForInventoryOpen(@NonNull GeyserItemStack itemInHand)
    • testUndeadHorseInteraction

      protected final InteractiveTag testUndeadHorseInteraction(@NonNull org.geysermc.mcprotocollib.protocol.data.game.entity.player.Hand hand, @NonNull GeyserItemStack itemInHand)
    • undeadHorseInteract

      protected final InteractionResult undeadHorseInteract(@NonNull org.geysermc.mcprotocollib.protocol.data.game.entity.player.Hand hand, @NonNull GeyserItemStack itemInHand)