Class AbstractHorseEntity

Direct Known Subclasses:
ChestedHorseEntity, HorseEntity, SkeletonHorseEntity, ZombieHorseEntity

public class AbstractHorseEntity extends AnimalEntity
  • Constructor Details

    • AbstractHorseEntity

      public AbstractHorseEntity(GeyserSession session, int entityId, long geyserId, UUID uuid, EntityDefinition<?> definition, com.nukkitx.math.vector.Vector3f position, com.nukkitx.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(com.github.steveice10.mc.protocol.data.game.entity.metadata.type.ByteEntityMetadata entityMetadata)
    • canEat

      public boolean canEat(String javaIdentifierStripped, ItemMapping mapping)
      Overrides:
      canEat in class AnimalEntity
      Parameters:
      javaIdentifierStripped - the stripped Java identifier of the item that is potential breeding food. For example, wheat.
      Returns:
      true if this is a valid item to breed with for this animal.
    • testMobInteraction

      @Nonnull protected InteractiveTag testMobInteraction(@Nonnull GeyserItemStack itemInHand)
      Overrides:
      testMobInteraction in class AnimalEntity
    • testHorseInteraction

      @Nonnull protected InteractiveTag testHorseInteraction(@Nonnull GeyserItemStack itemInHand)
    • mobInteract

      @Nonnull protected InteractionResult mobInteract(@Nonnull GeyserItemStack itemInHand)
      Overrides:
      mobInteract in class AnimalEntity
    • mobHorseInteract

      @Nonnull protected final InteractionResult mobHorseInteract(@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 GeyserItemStack itemInHand)
    • undeadHorseInteract

      protected final InteractionResult undeadHorseInteract(@Nonnull GeyserItemStack itemInHand)