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.nukkitx.protocol.bedrock.data.EntityDataDictionary |
metadata |
protected com.nukkitx.math.vector.Vector3f |
motion |
protected boolean |
movePending |
protected it.unimi.dsi.fastutil.longs.LongSet |
passengers |
protected com.nukkitx.math.vector.Vector3f |
position |
protected com.nukkitx.math.vector.Vector3f |
rotation
x = Yaw, y = Pitch, z = HeadYaw
|
protected float |
scale |
protected boolean |
valid |
| Constructor and Description |
|---|
Entity(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 |
|---|---|
<I extends Entity> |
as(Class<I> entityClass) |
boolean |
despawnEntity(GeyserSession session) |
com.nukkitx.math.vector.Vector3f |
getBedrockRotation()
x = Pitch, y = HeadYaw, z = Yaw
|
<I extends Entity> |
is(Class<I> entityClass) |
void |
moveAbsolute(com.nukkitx.math.vector.Vector3f position,
float yaw,
float pitch) |
void |
moveAbsolute(com.nukkitx.math.vector.Vector3f position,
com.nukkitx.math.vector.Vector3f rotation) |
void |
moveRelative(double relX,
double relY,
double relZ,
float yaw,
float pitch) |
void |
moveRelative(double relX,
double relY,
double relZ,
com.nukkitx.math.vector.Vector3f rotation) |
void |
setPosition(com.nukkitx.math.vector.Vector3f position) |
void |
spawnEntity(GeyserSession session) |
void |
updateBedrockAttributes(GeyserSession session) |
void |
updateBedrockMetadata(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata entityMetadata,
GeyserSession session) |
protected long entityId
protected long geyserId
protected int dimension
protected com.nukkitx.math.vector.Vector3f position
protected com.nukkitx.math.vector.Vector3f motion
protected com.nukkitx.math.vector.Vector3f rotation
protected float scale
protected boolean movePending
protected EntityType entityType
protected boolean valid
protected it.unimi.dsi.fastutil.longs.LongSet passengers
protected Map<AttributeType,Attribute> attributes
protected com.nukkitx.protocol.bedrock.data.EntityDataDictionary metadata
public Entity(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)
public boolean despawnEntity(GeyserSession session)
public void moveRelative(double relX,
double relY,
double relZ,
float yaw,
float pitch)
public void moveRelative(double relX,
double relY,
double relZ,
com.nukkitx.math.vector.Vector3f rotation)
public void moveAbsolute(com.nukkitx.math.vector.Vector3f position,
float yaw,
float pitch)
public void moveAbsolute(com.nukkitx.math.vector.Vector3f position,
com.nukkitx.math.vector.Vector3f rotation)
public void updateBedrockAttributes(GeyserSession session)
public void updateBedrockMetadata(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata entityMetadata,
GeyserSession session)
public void setPosition(com.nukkitx.math.vector.Vector3f position)
public com.nukkitx.math.vector.Vector3f getBedrockRotation()
Copyright © 2019 GeyserMC. All rights reserved.