public class ThrowableEntity extends Entity
| Modifier and Type | Field and Description |
|---|---|
protected ScheduledFuture<?> |
positionUpdater
Updates the position for the Bedrock client.
|
attributes, entityId, entityType, geyserId, metadata, motion, onGround, passengers, position, rotation, scale, 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()
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 |
spawnEntity(GeyserSession session) |
protected void |
updatePosition(GeyserSession session) |
as, getBedrockRotation, is, moveAbsolute, moveRelative, teleport, updateBedrockAttributes, updateBedrockMetadata, updateBedrockMetadata, updateHeadLookRotation, updatePositionAndRotation, updateRotationprotected ScheduledFuture<?> positionUpdater
public 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 spawnEntity(GeyserSession session)
spawnEntity in class Entityprotected void moveAbsoluteImmediate(GeyserSession session, com.nukkitx.math.vector.Vector3f position, com.nukkitx.math.vector.Vector3f rotation, boolean isOnGround, boolean teleported)
protected void updatePosition(GeyserSession session)
protected float getGravity()
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 © 2020 GeyserMC. All rights reserved.