Package org.geysermc.connector.entity
Class DefaultBlockMinecartEntity
java.lang.Object
org.geysermc.connector.entity.Entity
org.geysermc.connector.entity.MinecartEntity
org.geysermc.connector.entity.DefaultBlockMinecartEntity
- Direct Known Subclasses:
CommandBlockMinecartEntity,FurnaceMinecartEntity,SpawnerMinecartEntity
This class is used as a base for minecarts with a default block to display like furnaces and spawners
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefaultBlockMinecartEntity(long entityId, long geyserId, EntityType entityType, com.nukkitx.math.vector.Vector3f position, com.nukkitx.math.vector.Vector3f motion, com.nukkitx.math.vector.Vector3f rotation) -
Method Summary
Modifier and TypeMethodDescriptionvoidspawnEntity(GeyserSession session)voidupdateBedrockMetadata(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata entityMetadata, GeyserSession session)Applies the Java metadata to the local Bedrock metadata copyvoidupdateDefaultBlockMetadata(GeyserSession session)Methods inherited from class org.geysermc.connector.entity.MinecartEntity
getBedrockRotation, moveAbsoluteMethods inherited from class org.geysermc.connector.entity.Entity
addAdditionalSpawnData, as, despawnEntity, getMaxAir, is, isShaking, moveAbsolute, moveRelative, moveRelative, setAir, setDimensions, setDisplayName, setFreezing, setInvisible, teleport, updateBedrockMetadata, updateHeadLookRotation, updatePositionAndRotation, updateRotation
-
Field Details
-
customBlock
public int customBlock -
customBlockOffset
public int customBlockOffset -
showCustomBlock
public boolean showCustomBlock
-
-
Constructor Details
-
DefaultBlockMinecartEntity
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)
-
-
Method Details
-
spawnEntity
- Overrides:
spawnEntityin classEntity
-
updateBedrockMetadata
public void updateBedrockMetadata(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata entityMetadata, GeyserSession session)Description copied from class:EntityApplies the Java metadata to the local Bedrock metadata copy- Overrides:
updateBedrockMetadatain classMinecartEntity- Parameters:
entityMetadata- the Java entity metadatasession- GeyserSession
-
updateDefaultBlockMetadata
-