Package org.geysermc.geyser.entity.type
Class FireballEntity
java.lang.Object
org.geysermc.geyser.entity.type.Entity
org.geysermc.geyser.entity.type.ThrowableEntity
org.geysermc.geyser.entity.type.FireballEntity
- All Implemented Interfaces:
Tickable
- Direct Known Subclasses:
WitherSkullEntity
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intThe number of ticks to advance movement before sending to BedrockFields inherited from class org.geysermc.geyser.entity.type.ThrowableEntity
lastJavaPosition -
Constructor Summary
ConstructorsConstructorDescriptionFireballEntity(GeyserSession session, long entityId, long geyserId, UUID uuid, EntityDefinition<?> definition, com.nukkitx.math.vector.Vector3f position, com.nukkitx.math.vector.Vector3f motion, float yaw, float pitch, float headYaw) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidmoveAbsoluteImmediate(com.nukkitx.math.vector.Vector3f position, float yaw, float pitch, float headYaw, boolean isOnGround, boolean teleported)voidtick()Updates the position for the Bedrock client.Methods inherited from class org.geysermc.geyser.entity.type.ThrowableEntity
despawnEntity, getDrag, getGravity, isInWater, moveAbsolute, moveRelativeMethods inherited from class org.geysermc.geyser.entity.type.Entity
addAdditionalSpawnData, as, getBedrockRotation, getFlag, getMaxAir, initializeMetadata, is, isShaking, moveAbsolute, moveRelative, setAir, setAirSupply, setBoundingBoxHeight, setBoundingBoxWidth, setDimensions, setDisplayName, setDisplayNameVisible, setFlag, setFlags, setFreezing, setGravity, setInvisible, setPose, setRiderSeatPosition, spawnEntity, teleport, updateBedrockMetadata, updateHeadLookRotation, updateMountOffset, updatePassengerOffsets, updatePositionAndRotation, updateRotation
-
Field Details
-
futureTicks
protected int futureTicksThe number of ticks to advance movement before sending to Bedrock
-
-
Constructor Details
-
FireballEntity
public FireballEntity(GeyserSession session, long entityId, long geyserId, UUID uuid, EntityDefinition<?> definition, com.nukkitx.math.vector.Vector3f position, com.nukkitx.math.vector.Vector3f motion, float yaw, float pitch, float headYaw)
-
-
Method Details
-
moveAbsoluteImmediate
protected void moveAbsoluteImmediate(com.nukkitx.math.vector.Vector3f position, float yaw, float pitch, float headYaw, boolean isOnGround, boolean teleported)- Overrides:
moveAbsoluteImmediatein classThrowableEntity
-
tick
public void tick()Description copied from class:ThrowableEntityUpdates 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 classThrowableEntity
-