public class Entity extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Map<AttributeType,Attribute> |
attributes |
protected int |
dimension |
protected long |
entityId |
protected EntityType |
entityType |
protected long |
geyserId |
protected com.flowpowered.math.vector.Vector3f |
motion |
protected boolean |
movePending |
protected Set<Long> |
passengers |
protected com.flowpowered.math.vector.Vector3f |
position |
protected com.flowpowered.math.vector.Vector3f |
rotation |
protected int |
scale |
protected boolean |
valid |
| Constructor and Description |
|---|
Entity(long entityId,
long geyserId,
EntityType entityType,
com.flowpowered.math.vector.Vector3f position,
com.flowpowered.math.vector.Vector3f motion,
com.flowpowered.math.vector.Vector3f rotation) |
| Modifier and Type | Method and Description |
|---|---|
void |
despawnEntity(GeyserSession session) |
com.nukkitx.protocol.bedrock.data.EntityDataDictionary |
getMetadata() |
void |
moveAbsolute(com.flowpowered.math.vector.Vector3f position,
float pitch,
float yaw) |
void |
moveAbsolute(com.flowpowered.math.vector.Vector3f position,
com.flowpowered.math.vector.Vector3f rotation) |
void |
moveRelative(double relX,
double relY,
double relZ,
float pitch,
float yaw) |
void |
moveRelative(double relX,
double relY,
double relZ,
com.flowpowered.math.vector.Vector3f rotation) |
void |
spawnEntity(GeyserSession session) |
void |
updateBedrockAttributes(GeyserSession session) |
void |
updateJavaAttributes(GeyserSession session) |
protected long entityId
protected long geyserId
protected int dimension
protected com.flowpowered.math.vector.Vector3f position
protected com.flowpowered.math.vector.Vector3f motion
protected com.flowpowered.math.vector.Vector3f rotation
protected int scale
protected boolean movePending
protected EntityType entityType
protected boolean valid
protected Map<AttributeType,Attribute> attributes
public Entity(long entityId,
long geyserId,
EntityType entityType,
com.flowpowered.math.vector.Vector3f position,
com.flowpowered.math.vector.Vector3f motion,
com.flowpowered.math.vector.Vector3f rotation)
public void spawnEntity(GeyserSession session)
public void despawnEntity(GeyserSession session)
public void moveRelative(double relX,
double relY,
double relZ,
float pitch,
float yaw)
public void moveRelative(double relX,
double relY,
double relZ,
com.flowpowered.math.vector.Vector3f rotation)
public void moveAbsolute(com.flowpowered.math.vector.Vector3f position,
float pitch,
float yaw)
public void moveAbsolute(com.flowpowered.math.vector.Vector3f position,
com.flowpowered.math.vector.Vector3f rotation)
public com.nukkitx.protocol.bedrock.data.EntityDataDictionary getMetadata()
public void updateBedrockAttributes(GeyserSession session)
public void updateJavaAttributes(GeyserSession session)
Copyright © 2019 GeyserMC. All rights reserved.