Class FishingHookEntity

All Implemented Interfaces:
org.geysermc.geyser.api.entity.type.GeyserEntity, Tickable

public class FishingHookEntity extends ThrowableEntity
  • Constructor Details

  • Method Details

    • despawnEntity

      public void despawnEntity()
      Description copied from class: Entity
      Despawns the entity
      Overrides:
      despawnEntity in class ThrowableEntity
    • setHookedEntity

      public void setHookedEntity(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.type.IntEntityMetadata entityMetadata)
    • moveAbsoluteImmediate

      protected void moveAbsoluteImmediate(org.cloudburstmc.math.vector.Vector3f javaPosition, 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
    • getBedrockOwnerId

      public long getBedrockOwnerId()
    • getBedrockTargetId

      public long getBedrockTargetId()