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
- All Implemented Interfaces:
org.geysermc.geyser.api.entity.type.GeyserEntity,Tickable
- 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
FieldsFields inherited from class org.geysermc.geyser.entity.type.MinecartEntity
dirtyHeadYaw, dirtyPitch, dirtyYawFields inherited from class org.geysermc.geyser.entity.type.Entity
bedrockDefinition, customName, customNameVisible, dirtyMetadata, entityId, flags, geyserId, headYaw, height, javaTypeDefinition, metadata, motion, nametag, offset, onGround, passengers, pitch, propertyManager, session, silent, uuid, valid, vehicle, width, yaw -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetCustomBlock(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.type.IntEntityMetadata entityMetadata) voidsetCustomBlockOffset(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.type.IntEntityMetadata entityMetadata) voidvoidMethods inherited from class org.geysermc.geyser.entity.type.MinecartEntity
doesJumpDismount, getBedrockRotation, handleMinecartMovePacket, interact, lerp, moveAbsolute, moveRelative, testInteraction, tickMethods inherited from class org.geysermc.geyser.entity.type.Entity
addAdditionalSpawnData, bedrockDefinition, bedrockDefinition, bedrockPosition, definition, despawnEntity, getBoundingBoxHeight, getBoundingBoxWidth, getDirtyMetadata, getDisplayName, getEntityId, getFlag, getHeadYaw, getJavaTypeDefinition, getMaxAir, getMetadata, getMotion, getNametag, getOffset, getPassengers, getPitch, getPosition, getPropertyManager, getSession, getVehicle, getYaw, geyserId, hasLeashesToDrop, height, height, initializeMetadata, interactAt, isAlive, isCustomNameVisible, isOnGround, isShaking, isSilent, isValid, javaId, moveAbsolute, moveAbsoluteRaw, moveRelativeRaw, offset, playEntityEvent, playEntityEvent, position, scoreVisibility, setAir, setAirSupply, setBoundingBoxHeight, setBoundingBoxWidth, setClientSideSilent, setCustomName, setCustomNameVisible, setDimensionsFromPose, setEntityId, setFlag, setFlags, setFlagsDirty, setFreezing, setGliding, setGravity, setHeadYaw, setInvisible, setJavaTypeDefinition, setMotion, setNameEntityData, setNametag, setNametagAlwaysShow, setOffset, setOnGround, setPassengers, setPitch, setPose, setPosition, setRiderSeatPosition, setSilent, setSneaking, setSprinting, setValid, setVehicle, setYaw, standardDisplayName, teamIdentifier, teleport, update, updateBedrockEntityProperties, updateBedrockMetadata, updateHeadLookRotation, updateInteractiveTag, updateMountOffset, updateNametag, updateNametag, updatePassengerOffsets, updatePositionAndRotation, updatePropertiesBatched, updateRotation, uuid, uuid, value, width, widthMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.geysermc.geyser.api.entity.type.GeyserEntity
updatePropertiesBatched, updateProperty
-
Field Details
-
customBlock
public int customBlock -
customBlockOffset
public int customBlockOffset -
showCustomBlock
public boolean showCustomBlock
-
-
Constructor Details
-
DefaultBlockMinecartEntity
-
-
Method Details
-
spawnEntity
public void spawnEntity()- Overrides:
spawnEntityin classEntity
-
setCustomBlock
public void setCustomBlock(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.type.IntEntityMetadata entityMetadata) - Overrides:
setCustomBlockin classMinecartEntity
-
setCustomBlockOffset
public void setCustomBlockOffset(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.type.IntEntityMetadata entityMetadata) - Overrides:
setCustomBlockOffsetin classMinecartEntity
-
updateDefaultBlockMetadata
public void updateDefaultBlockMetadata()
-