public class ThrowableEntity extends Entity implements Tickable
| Modifier and Type | Field and Description |
|---|---|
protected com.nukkitx.math.vector.Vector3f |
lastJavaPosition |
attributes, entityId, entityType, geyserId, metadata, motion, onGround, passengers, position, rotation, valid| Constructor and Description |
|---|
ThrowableEntity(long entityId,
long geyserId,
EntityType entityType,
com.nukkitx.math.vector.Vector3f position,
com.nukkitx.math.vector.Vector3f motion,
com.nukkitx.math.vector.Vector3f rotation) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
despawnEntity(GeyserSession session)
Despawns the entity
|
protected float |
getDrag(GeyserSession session) |
protected float |
getGravity(GeyserSession session)
Get the gravity of this entity type.
|
protected boolean |
isInWater(GeyserSession session) |
void |
moveAbsolute(GeyserSession session,
com.nukkitx.math.vector.Vector3f position,
com.nukkitx.math.vector.Vector3f rotation,
boolean isOnGround,
boolean teleported) |
protected void |
moveAbsoluteImmediate(GeyserSession session,
com.nukkitx.math.vector.Vector3f position,
com.nukkitx.math.vector.Vector3f rotation,
boolean isOnGround,
boolean teleported) |
void |
moveRelative(GeyserSession session,
double relX,
double relY,
double relZ,
com.nukkitx.math.vector.Vector3f rotation,
boolean isOnGround) |
void |
tick(GeyserSession session)
Updates the position for the Bedrock client.
|
as, getBedrockRotation, is, isShaking, moveAbsolute, moveRelative, setDimensions, setFreezing, spawnEntity, teleport, updateBedrockAttributes, updateBedrockMetadata, updateBedrockMetadata, updateHeadLookRotation, updatePositionAndRotation, updateRotationpublic ThrowableEntity(long entityId,
long geyserId,
EntityType entityType,
com.nukkitx.math.vector.Vector3f position,
com.nukkitx.math.vector.Vector3f motion,
com.nukkitx.math.vector.Vector3f rotation)
public void tick(GeyserSession session)
protected void moveAbsoluteImmediate(GeyserSession session, com.nukkitx.math.vector.Vector3f position, com.nukkitx.math.vector.Vector3f rotation, boolean isOnGround, boolean teleported)
protected float getGravity(GeyserSession session)
session - the session of the Bedrock client.protected float getDrag(GeyserSession session)
session - the session of the Bedrock client.protected boolean isInWater(GeyserSession session)
session - the session of the Bedrock client.public boolean despawnEntity(GeyserSession session)
EntitydespawnEntity in class Entitysession - The GeyserSessionpublic void moveRelative(GeyserSession session, double relX, double relY, double relZ, com.nukkitx.math.vector.Vector3f rotation, boolean isOnGround)
moveRelative in class Entitypublic void moveAbsolute(GeyserSession session, com.nukkitx.math.vector.Vector3f position, com.nukkitx.math.vector.Vector3f rotation, boolean isOnGround, boolean teleported)
moveAbsolute in class EntityCopyright © 2021 GeyserMC. All rights reserved.