Package org.geysermc.geyser.entity.type
Class DefaultBlockMinecartEntity
java.lang.Object
org.geysermc.geyser.entity.type.Entity
org.geysermc.geyser.entity.type.MinecartEntity
org.geysermc.geyser.entity.type.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(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 TypeMethodDescriptionvoidsetCustomBlock(com.github.steveice10.mc.protocol.data.game.entity.metadata.type.IntEntityMetadata entityMetadata)voidsetCustomBlockOffset(com.github.steveice10.mc.protocol.data.game.entity.metadata.type.IntEntityMetadata entityMetadata)voidsetShowCustomBlock(com.github.steveice10.mc.protocol.data.game.entity.metadata.type.BooleanEntityMetadata entityMetadata)voidvoidMethods 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, initializeMetadata, is, isShaking, moveAbsolute, moveRelative, moveRelative, setAir, setAirSupply, setBoundingBoxHeight, setBoundingBoxWidth, setDimensions, setDisplayName, setDisplayNameVisible, setFlag, setFlags, setFreezing, setGravity, setInvisible, setPose, setRiderSeatPosition, teleport, updateBedrockMetadata, updateHeadLookRotation, updateMountOffset, updatePassengerOffsets, updatePositionAndRotation, updateRotation
-
Field Details
-
customBlock
public int customBlock -
customBlockOffset
public int customBlockOffset -
showCustomBlock
public boolean showCustomBlock
-
-
Constructor Details
-
DefaultBlockMinecartEntity
public DefaultBlockMinecartEntity(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
-
spawnEntity
public void spawnEntity()- Overrides:
spawnEntityin classEntity
-
setCustomBlock
public void setCustomBlock(com.github.steveice10.mc.protocol.data.game.entity.metadata.type.IntEntityMetadata entityMetadata)- Overrides:
setCustomBlockin classMinecartEntity
-
setCustomBlockOffset
public void setCustomBlockOffset(com.github.steveice10.mc.protocol.data.game.entity.metadata.type.IntEntityMetadata entityMetadata)- Overrides:
setCustomBlockOffsetin classMinecartEntity
-
setShowCustomBlock
public void setShowCustomBlock(com.github.steveice10.mc.protocol.data.game.entity.metadata.type.BooleanEntityMetadata entityMetadata)- Overrides:
setShowCustomBlockin classMinecartEntity
-
updateDefaultBlockMetadata
public void updateDefaultBlockMetadata()
-