Class AbstractArrowEntity

All Implemented Interfaces:
org.geysermc.geyser.api.entity.type.GeyserEntity, Tickable
Direct Known Subclasses:
ArrowEntity, TridentEntity

public class AbstractArrowEntity extends ProjectileEntity
  • Constructor Details

  • Method Details

    • tick

      public void tick()
      Description copied from class: ProjectileEntity
      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 ProjectileEntity
    • setArrowFlags

      public void setArrowFlags(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.type.ByteEntityMetadata entityMetadata)
    • setInGround

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

      public void setYaw(float yaw)
      Description copied from class: Entity
      x = Yaw, y = Pitch, z = HeadYaw Java: Y = Yaw, X = Pitch
      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
    • getGravity

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

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

      public void setMotion(org.cloudburstmc.math.vector.Vector3f motion)
      Overrides:
      setMotion in class Entity