public class ItemEntity extends Entity
| Modifier and Type | Field and Description |
|---|---|
protected com.nukkitx.protocol.bedrock.data.inventory.ItemData |
item |
attributes, entityId, entityType, geyserId, metadata, motion, onGround, passengers, position, rotation, valid| Constructor and Description |
|---|
ItemEntity(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 |
|---|---|
void |
moveAbsolute(GeyserSession session,
com.nukkitx.math.vector.Vector3f position,
com.nukkitx.math.vector.Vector3f rotation,
boolean isOnGround,
boolean teleported) |
void |
setMotion(com.nukkitx.math.vector.Vector3f motion) |
void |
spawnEntity(GeyserSession session) |
void |
updateBedrockMetadata(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata entityMetadata,
GeyserSession session)
Applies the Java metadata to the local Bedrock metadata copy
|
as, despawnEntity, getBedrockRotation, is, isShaking, moveAbsolute, moveRelative, moveRelative, setDimensions, setFreezing, teleport, updateBedrockAttributes, updateBedrockMetadata, updateHeadLookRotation, updatePositionAndRotation, updateRotationpublic ItemEntity(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 setMotion(com.nukkitx.math.vector.Vector3f motion)
public void moveAbsolute(GeyserSession session, com.nukkitx.math.vector.Vector3f position, com.nukkitx.math.vector.Vector3f rotation, boolean isOnGround, boolean teleported)
moveAbsolute in class Entitypublic void spawnEntity(GeyserSession session)
spawnEntity in class Entitypublic void updateBedrockMetadata(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata entityMetadata,
GeyserSession session)
EntityupdateBedrockMetadata in class EntityentityMetadata - the Java entity metadatasession - GeyserSessionCopyright © 2021 GeyserMC. All rights reserved.