Package org.geysermc.geyser.entity.type
Class CommandBlockMinecartEntity
java.lang.Object
org.geysermc.geyser.entity.type.Entity
org.geysermc.geyser.entity.type.MinecartEntity
org.geysermc.geyser.entity.type.DefaultBlockMinecartEntity
org.geysermc.geyser.entity.type.CommandBlockMinecartEntity
-
Field Summary
Fields inherited from class org.geysermc.geyser.entity.type.DefaultBlockMinecartEntity
customBlock, customBlockOffset, showCustomBlock -
Constructor Summary
ConstructorsConstructorDescriptionCommandBlockMinecartEntity(GeyserSession session, long entityId, long geyserId, UUID uuid, EntityDefinition<?> definition, com.nukkitx.math.vector.Vector3f position, com.nukkitx.math.vector.Vector3f motion, float yaw, float pitch, float headYaw) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidCalled on entity spawn.voidBy default, the command block shown is purple on Bedrock, which does not match Java Edition's orange.Methods inherited from class org.geysermc.geyser.entity.type.DefaultBlockMinecartEntity
setCustomBlock, setCustomBlockOffset, setShowCustomBlock, spawnEntityMethods inherited from class org.geysermc.geyser.entity.type.MinecartEntity
getBedrockRotation, moveAbsoluteMethods inherited from class org.geysermc.geyser.entity.type.Entity
addAdditionalSpawnData, as, despawnEntity, getFlag, getMaxAir, is, isShaking, moveAbsolute, moveRelative, moveRelative, setAir, setAirSupply, setBoundingBoxHeight, setBoundingBoxWidth, setDimensions, setDisplayName, setDisplayNameVisible, setFlag, setFlags, setFreezing, setGravity, setInvisible, setPose, setRiderSeatPosition, teleport, updateBedrockMetadata, updateHeadLookRotation, updatePositionAndRotation, updateRotation
-
Constructor Details
-
CommandBlockMinecartEntity
public CommandBlockMinecartEntity(GeyserSession session, long entityId, long geyserId, UUID uuid, EntityDefinition<?> definition, com.nukkitx.math.vector.Vector3f position, com.nukkitx.math.vector.Vector3f motion, float yaw, float pitch, float headYaw)
-
-
Method Details
-
initializeMetadata
protected void initializeMetadata()Description copied from class:EntityCalled on entity spawn. Used to populate the entity metadata and flags with default values.- Overrides:
initializeMetadatain classEntity
-
updateDefaultBlockMetadata
public void updateDefaultBlockMetadata()By default, the command block shown is purple on Bedrock, which does not match Java Edition's orange.- Overrides:
updateDefaultBlockMetadatain classDefaultBlockMinecartEntity
-