Class AbstractNautilusEntity

All Implemented Interfaces:
org.geysermc.geyser.api.entity.type.GeyserEntity, Leashable, Tickable, ClientVehicle
Direct Known Subclasses:
NautilusEntity, ZombieNautilusEntity

public abstract class AbstractNautilusEntity extends TameableEntity implements ClientVehicle
  • Constructor Details

    • AbstractNautilusEntity

      public AbstractNautilusEntity(EntitySpawnContext context, float defSpeed)
  • Method Details

    • 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.
    • setBody

      public void setBody(GeyserItemStack stack)
      Overrides:
      setBody 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 AnimalEntity
    • updateSaddled

      protected void updateSaddled(boolean saddled)
      Overrides:
      updateSaddled in class LivingEntity
    • doesJumpDismount

      public boolean doesJumpDismount()
      Description copied from class: Entity
      If true, the entity can be dismounted by pressing jump.
      Overrides:
      doesJumpDismount in class Entity
      Returns:
      whether the entity can be dismounted when pressing jump.
    • setDashing

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

      public VehicleComponent<?> getVehicleComponent()
      Specified by:
      getVehicleComponent in interface ClientVehicle
    • getRiddenInput

      public org.cloudburstmc.math.vector.Vector3f getRiddenInput(org.cloudburstmc.math.vector.Vector2f input)
      Specified by:
      getRiddenInput in interface ClientVehicle
    • getVehicleSpeed

      public float getVehicleSpeed()
      Specified by:
      getVehicleSpeed in interface ClientVehicle
    • shouldSimulateMovement

      public boolean shouldSimulateMovement()
      Specified by:
      shouldSimulateMovement in interface ClientVehicle
    • canUseSlot

      protected boolean canUseSlot(org.geysermc.mcprotocollib.protocol.data.game.entity.EquipmentSlot slot)
      Overrides:
      canUseSlot in class LivingEntity