Class SquidEntity

All Implemented Interfaces:
Tickable
Direct Known Subclasses:
GlowSquidEntity

public class SquidEntity extends WaterEntity implements Tickable
  • Constructor Details

    • SquidEntity

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

    • tick

      public void tick()
      Specified by:
      tick in interface Tickable
    • moveRelative

      public void moveRelative(double relX, double relY, double relZ, float yaw, float pitch, float headYaw, boolean isOnGround)
      Overrides:
      moveRelative in class Entity
    • moveAbsolute

      public void moveAbsolute(com.nukkitx.math.vector.Vector3f position, float yaw, float pitch, float headYaw, boolean isOnGround, boolean teleported)
      Overrides:
      moveAbsolute in class Entity
    • setYaw

      public void setYaw(float yaw)
      Description copied from class: Entity
      x = Yaw, y = Pitch, z = HeadYaw
      Overrides:
      setYaw in class Entity
    • setPitch

      public void setPitch(float pitch)
      Overrides:
      setPitch in class Entity
    • setHeadYaw

      public void setHeadYaw(float headYaw)
      Overrides:
      setHeadYaw in class Entity
    • setMotion

      public void setMotion(com.nukkitx.math.vector.Vector3f motion)
      Overrides:
      setMotion in class Entity
    • getBedrockRotation

      public com.nukkitx.math.vector.Vector3f getBedrockRotation()
      Description copied from class: Entity
      x = Pitch, y = Yaw, z = HeadYaw
      Overrides:
      getBedrockRotation in class Entity
      Returns:
      the bedrock rotation
    • canBeLeashed

      protected boolean canBeLeashed()
      Overrides:
      canBeLeashed in class WaterEntity