public class ItemEntity extends ThrowableEntity
| Modifier and Type | Field and Description |
|---|---|
protected com.nukkitx.protocol.bedrock.data.inventory.ItemData |
item |
lastJavaPosition| 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 |
|---|---|
protected float |
getDrag(GeyserSession session) |
protected float |
getGravity(GeyserSession session)
Get the gravity of this entity type.
|
protected boolean |
isInWater(GeyserSession session) |
protected void |
moveAbsoluteImmediate(GeyserSession session,
com.nukkitx.math.vector.Vector3f position,
com.nukkitx.math.vector.Vector3f rotation,
boolean isOnGround,
boolean teleported) |
void |
spawnEntity(GeyserSession session) |
void |
tick(GeyserSession session)
Updates the position for the Bedrock client.
|
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
|
despawnEntity, moveAbsolute, moveRelativeaddAdditionalSpawnData, as, getBedrockRotation, getMaxAir, is, isShaking, moveAbsolute, moveRelative, setAir, setDimensions, setFreezing, teleport, 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 spawnEntity(GeyserSession session)
spawnEntity in class Entitypublic void tick(GeyserSession session)
ThrowableEntitytick in interface Tickabletick in class ThrowableEntityprotected void moveAbsoluteImmediate(GeyserSession session, com.nukkitx.math.vector.Vector3f position, com.nukkitx.math.vector.Vector3f rotation, boolean isOnGround, boolean teleported)
moveAbsoluteImmediate in class ThrowableEntityprotected float getGravity(GeyserSession session)
ThrowableEntitygetGravity in class ThrowableEntitysession - the session of the Bedrock client.protected float getDrag(GeyserSession session)
getDrag in class ThrowableEntitysession - the session of the Bedrock client.public void updateBedrockMetadata(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata entityMetadata,
GeyserSession session)
EntityupdateBedrockMetadata in class EntityentityMetadata - the Java entity metadatasession - GeyserSessionprotected boolean isInWater(GeyserSession session)
isInWater in class ThrowableEntitysession - the session of the Bedrock client.Copyright © 2021 GeyserMC. All rights reserved.