Class FishingHookEntity

All Implemented Interfaces:
Tickable

public class FishingHookEntity extends ThrowableEntity
  • Constructor Details

    • FishingHookEntity

      public FishingHookEntity(GeyserSession session, long entityId, long geyserId, UUID uuid, com.nukkitx.math.vector.Vector3f position, com.nukkitx.math.vector.Vector3f motion, float yaw, float pitch, PlayerEntity owner)
  • Method Details

    • spawnEntity

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

      public void setHookedEntity(com.github.steveice10.mc.protocol.data.game.entity.metadata.type.IntEntityMetadata entityMetadata)
    • moveAbsoluteImmediate

      protected void moveAbsoluteImmediate(com.nukkitx.math.vector.Vector3f position, float yaw, float pitch, float headYaw, boolean isOnGround, boolean teleported)
      Overrides:
      moveAbsoluteImmediate in class ThrowableEntity
    • tick

      public void tick()
      Description copied from class: ThrowableEntity
      Updates the position for the Bedrock client. Java clients assume the next positions of moving items. Bedrock needs to be explicitly told positions
      Specified by:
      tick in interface Tickable
      Overrides:
      tick in class ThrowableEntity
    • getGravity

      protected float getGravity()
      Description copied from class: ThrowableEntity
      Get the gravity of this entity type. Used for applying gravity while the entity is in motion.
      Overrides:
      getGravity in class ThrowableEntity
      Returns:
      the amount of gravity to apply to this entity while in motion.
    • isInAir

      protected boolean isInAir()
      Returns:
      true if this entity is currently in air.
    • getDrag

      protected float getDrag()
      Overrides:
      getDrag in class ThrowableEntity
      Returns:
      the drag that should be multiplied to the entity's motion