public class MinecartEntity extends Entity
| Constructor and Description |
|---|
MinecartEntity(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 |
|---|---|
com.nukkitx.math.vector.Vector3f |
getBedrockRotation()
x = Pitch, y = HeadYaw, z = Yaw
|
void |
moveAbsolute(GeyserSession session,
com.nukkitx.math.vector.Vector3f position,
com.nukkitx.math.vector.Vector3f rotation,
boolean isOnGround,
boolean teleported) |
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
|
addAdditionalSpawnData, as, despawnEntity, getMaxAir, is, isShaking, moveAbsolute, moveRelative, moveRelative, setAir, setDimensions, setFreezing, spawnEntity, teleport, updateBedrockMetadata, updateHeadLookRotation, updatePositionAndRotation, updateRotationpublic MinecartEntity(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 updateBedrockMetadata(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata entityMetadata,
GeyserSession session)
EntityupdateBedrockMetadata in class EntityentityMetadata - the Java entity metadatasession - GeyserSessionpublic void moveAbsolute(GeyserSession session, com.nukkitx.math.vector.Vector3f position, com.nukkitx.math.vector.Vector3f rotation, boolean isOnGround, boolean teleported)
moveAbsolute in class Entitypublic com.nukkitx.math.vector.Vector3f getBedrockRotation()
EntitygetBedrockRotation in class EntityCopyright © 2021 GeyserMC. All rights reserved.