Package org.geysermc.connector.entity
Class CommandBlockMinecartEntity
java.lang.Object
org.geysermc.connector.entity.Entity
org.geysermc.connector.entity.MinecartEntity
org.geysermc.connector.entity.DefaultBlockMinecartEntity
org.geysermc.connector.entity.CommandBlockMinecartEntity
-
Field Summary
Fields inherited from class org.geysermc.connector.entity.DefaultBlockMinecartEntity
customBlock, customBlockOffset, showCustomBlock -
Constructor Summary
ConstructorsConstructorDescriptionCommandBlockMinecartEntity(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 TypeMethodDescriptionvoidupdateBedrockMetadata(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)By default, the command block shown is purple on Bedrock, which does not match Java Edition's orange.Methods inherited from class org.geysermc.connector.entity.DefaultBlockMinecartEntity
spawnEntityMethods 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, setFreezing, setInvisible, teleport, updateBedrockMetadata, updateHeadLookRotation, updatePositionAndRotation, updateRotation
-
Constructor Details
-
CommandBlockMinecartEntity
public CommandBlockMinecartEntity(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
-
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 classDefaultBlockMinecartEntity- Parameters:
entityMetadata- the Java entity metadatasession- GeyserSession
-
updateDefaultBlockMetadata
By default, the command block shown is purple on Bedrock, which does not match Java Edition's orange.- Overrides:
updateDefaultBlockMetadatain classDefaultBlockMinecartEntity
-