public class DefaultBlockMinecartEntity extends MinecartEntity
| Modifier and Type | Field and Description |
|---|---|
int |
customBlock |
int |
customBlockOffset |
boolean |
showCustomBlock |
attributes, entityId, entityType, geyserId, metadata, motion, onGround, passengers, position, rotation, valid| Constructor and Description |
|---|
DefaultBlockMinecartEntity(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 |
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
|
void |
updateDefaultBlockMetadata(GeyserSession session) |
getBedrockRotation, moveAbsoluteas, despawnEntity, is, isShaking, moveAbsolute, moveRelative, moveRelative, setDimensions, setFreezing, teleport, updateBedrockAttributes, updateBedrockMetadata, updateHeadLookRotation, updatePositionAndRotation, updateRotationpublic int customBlock
public int customBlockOffset
public boolean showCustomBlock
public DefaultBlockMinecartEntity(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 updateBedrockMetadata(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata entityMetadata,
GeyserSession session)
EntityupdateBedrockMetadata in class MinecartEntityentityMetadata - the Java entity metadatasession - GeyserSessionpublic void updateDefaultBlockMetadata(GeyserSession session)
Copyright © 2021 GeyserMC. All rights reserved.