Package org.geysermc.geyser.entity.type
Class AbstractWindChargeEntity
java.lang.Object
org.geysermc.geyser.entity.type.Entity
org.geysermc.geyser.entity.type.ProjectileEntity
org.geysermc.geyser.entity.type.ThrowableItemEntity
org.geysermc.geyser.entity.type.AbstractWindChargeEntity
- All Implemented Interfaces:
org.geysermc.geyser.api.entity.type.GeyserEntity,Tickable
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.
-
Field Summary
Fields inherited from class org.geysermc.geyser.entity.type.ProjectileEntity
lastJavaPositionFields inherited from class org.geysermc.geyser.entity.type.Entity
bedrockDefinition, customName, customNameVisible, dirtyMetadata, entityId, flags, geyserId, headYaw, javaTypeDefinition, motion, nametag, onGround, passengers, pitch, position, propertyManager, scale, session, silent, uuid, valid, vehicle, yaw -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.geysermc.geyser.entity.type.ThrowableItemEntity
drawTick, initializeMetadata, setInvisible, setItemMethods inherited from class org.geysermc.geyser.entity.type.ProjectileEntity
despawnEntity, getGravity, isInWater, moveAbsoluteImmediate, moveAbsoluteRaw, moveRelativeRaw, removedInVoidMethods inherited from class org.geysermc.geyser.entity.type.Entity
addAdditionalSpawnData, applyScale, bedrockDefinition, bedrockDefinition, bedrockPosition, bedrockRotation, definition, doesJumpDismount, getBoundingBoxHeight, getBoundingBoxWidth, getDirtyMetadata, getDisplayName, getEntityId, getFlag, getHeadYaw, getJavaTypeDefinition, getMaxAir, getMotion, getNametag, getOffset, getPassengers, getPitch, getPosition, getPropertyManager, getScale, getSession, getVehicle, getYaw, geyserId, hasLeashesToDrop, interact, interactAt, isAlive, isCustomNameVisible, isOnGround, isShaking, isSilent, isValid, javaId, moveAbsolute, moveAbsolute, moveRelative, offset, passengers, playEntityEvent, playEntityEvent, position, scoreVisibility, setAir, setAirSupply, setBoundingBoxHeight, setBoundingBoxWidth, setClientSideSilent, setCustomName, setCustomNameVisible, setDimensionsFromPose, setEntityId, setFlag, setFlags, setFlagsDirty, setFreezing, setGliding, setGravity, setHeadYaw, setJavaTypeDefinition, setMotion, setNameEntityData, setNametag, setNametagAlwaysShow, setOffset, setOnGround, setPassengers, setPitch, setPose, setPosition, setRiderSeatPosition, setScale, setSilent, setSneaking, setSprinting, setValid, setVehicle, setYaw, spawnEntity, standardDisplayName, teamIdentifier, teleport, testInteraction, update, updateBedrockEntityProperties, updateBedrockMetadata, updateHeadLookRotation, updateInteractiveTag, updateMountOffset, updateNametag, updateNametag, updatePassengerOffsets, updatePositionAndRotation, updatePropertiesBatched, updateRotation, uuid, uuid, value, vehicleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.geysermc.geyser.api.entity.type.GeyserEntity
updatePropertiesBatched, updateProperty
-
Constructor Details
-
AbstractWindChargeEntity
-
-
Method Details
-
tick
public void tick()Description copied from class:ProjectileEntityUpdates the position for the Bedrock client. Java clients assume the next positions of moving items. Bedrock needs to be explicitly told positions- Specified by:
tickin interfaceTickable- Overrides:
tickin classProjectileEntity
-
getDrag
protected float getDrag()- Overrides:
getDragin classProjectileEntity- Returns:
- the drag that should be multiplied to the entity's motion
-