Class StriderEntity


public class StriderEntity extends AnimalEntity
  • Constructor Details

    • StriderEntity

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

    • setCold

      public void setCold(com.github.steveice10.mc.protocol.data.game.entity.metadata.type.BooleanEntityMetadata entityMetadata)
    • setSaddled

      public void setSaddled(com.github.steveice10.mc.protocol.data.game.entity.metadata.type.BooleanEntityMetadata entityMetadata)
    • updateBedrockMetadata

      public void updateBedrockMetadata()
      Description copied from class: Entity
      Sends the Bedrock metadata to the client
      Overrides:
      updateBedrockMetadata in class Entity
    • isShaking

      protected boolean isShaking()
      Description copied from class: Entity
      If true, the entity should be shaking on the client's end.
      Overrides:
      isShaking in class LivingEntity
      Returns:
      whether EntityFlag.SHAKING should be set to true.
    • 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(com.github.steveice10.mc.protocol.data.game.entity.player.Hand hand, @Nonnull GeyserItemStack itemInHand)
      Overrides:
      testMobInteraction in class AnimalEntity
    • mobInteract

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