Class AbstractWindChargeEntity

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

public class AbstractWindChargeEntity extends ThrowableItemEntity
Note that, as of 1.21, a wind charge entity does not actually implement the thrown item. We're just reusing the "hide until far away" aspect.
  • Constructor Details

    • AbstractWindChargeEntity

      public AbstractWindChargeEntity(GeyserSession session, int entityId, long geyserId, UUID uuid, EntityDefinition<?> definition, org.cloudburstmc.math.vector.Vector3f position, org.cloudburstmc.math.vector.Vector3f motion, float yaw, float pitch, float headYaw)
  • Method Details

    • 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
    • getDrag

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