Package org.geysermc.connector.entity
Class MinecartEntity
java.lang.Object
org.geysermc.connector.entity.Entity
org.geysermc.connector.entity.MinecartEntity
- Direct Known Subclasses:
DefaultBlockMinecartEntity
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionMinecartEntity(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 TypeMethodDescriptioncom.nukkitx.math.vector.Vector3fx = Pitch, y = HeadYaw, z = YawvoidmoveAbsolute(GeyserSession session, com.nukkitx.math.vector.Vector3f position, com.nukkitx.math.vector.Vector3f rotation, boolean isOnGround, boolean teleported)voidupdateBedrockMetadata(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata entityMetadata, GeyserSession session)Applies the Java metadata to the local Bedrock metadata copyMethods inherited from class org.geysermc.connector.entity.Entity
addAdditionalSpawnData, as, despawnEntity, getMaxAir, is, isShaking, moveAbsolute, moveRelative, moveRelative, setAir, setDimensions, setDisplayName, setDisplayNameVisible, setFreezing, setInvisible, spawnEntity, teleport, updateBedrockMetadata, updateHeadLookRotation, updatePositionAndRotation, updateRotation
-
Constructor Details
-
MinecartEntity
public MinecartEntity(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 classEntity- Parameters:
entityMetadata- the Java entity metadatasession- GeyserSession
-
moveAbsolute
public void moveAbsolute(GeyserSession session, com.nukkitx.math.vector.Vector3f position, com.nukkitx.math.vector.Vector3f rotation, boolean isOnGround, boolean teleported)- Overrides:
moveAbsolutein classEntity
-
getBedrockRotation
public com.nukkitx.math.vector.Vector3f getBedrockRotation()Description copied from class:Entityx = Pitch, y = HeadYaw, z = Yaw- Overrides:
getBedrockRotationin classEntity- Returns:
- the bedrock rotation
-