public class SessionPlayerEntity extends PlayerEntity
GeyserSession's player.boots, chestplate, hand, helmet, leggings, offHandattributes, entityId, entityType, geyserId, metadata, motion, onGround, passengers, position, rotation, scale, valid| Constructor and Description |
|---|
SessionPlayerEntity(GeyserSession session) |
| Modifier and Type | Method and Description |
|---|---|
void |
moveAbsolute(GeyserSession session,
com.nukkitx.math.vector.Vector3f position,
com.nukkitx.math.vector.Vector3f rotation,
boolean isOnGround,
boolean teleported) |
void |
setPosition(com.nukkitx.math.vector.Vector3f position) |
void |
spawnEntity(GeyserSession session) |
void |
updateBedrockMetadata(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata entityMetadata,
GeyserSession session)
Applies the Java metadata to the local Bedrock metadata copy
|
void |
updateBedrockMetadata(GeyserSession session)
Sends the Bedrock metadata to the client
|
moveRelative, sendPlayer, setDimensions, setPosition, updateBedrockAttributes, updateHeadLookRotation, updatePositionAndRotation, updateRotationgetDefaultMaxHealth, updateAllEquipment, updateArmor, updateMainHand, updateOffHandas, despawnEntity, getBedrockRotation, is, moveAbsolute, moveRelative, teleportpublic SessionPlayerEntity(GeyserSession session)
public void spawnEntity(GeyserSession session)
spawnEntity in class PlayerEntitypublic void moveAbsolute(GeyserSession session, com.nukkitx.math.vector.Vector3f position, com.nukkitx.math.vector.Vector3f rotation, boolean isOnGround, boolean teleported)
moveAbsolute in class PlayerEntitypublic void setPosition(com.nukkitx.math.vector.Vector3f position)
setPosition in class PlayerEntitypublic void updateBedrockMetadata(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata entityMetadata,
GeyserSession session)
EntityupdateBedrockMetadata in class PlayerEntityentityMetadata - the Java entity metadatasession - GeyserSessionpublic void updateBedrockMetadata(GeyserSession session)
EntityupdateBedrockMetadata in class Entitysession - GeyserSessionCopyright © 2021 GeyserMC. All rights reserved.