public class ItemFrameEntity extends Entity
attributes, entityId, entityType, geyserId, metadata, motion, onGround, passengers, position, scale, valid| Constructor and Description |
|---|
ItemFrameEntity(long entityId,
long geyserId,
EntityType entityType,
com.nukkitx.math.vector.Vector3f position,
com.nukkitx.math.vector.Vector3f motion,
com.nukkitx.math.vector.Vector3f rotation,
com.github.steveice10.mc.protocol.data.game.entity.object.HangingDirection direction) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
despawnEntity(GeyserSession session)
Despawns the entity
|
static ItemFrameEntity |
getItemFrameEntity(GeyserSession session,
com.nukkitx.math.vector.Vector3i position)
Finds the Java entity ID of an item frame from its Bedrock 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 |
updateBlock(GeyserSession session)
Updates the item frame as a block
|
as, getBedrockRotation, is, moveAbsolute, moveAbsolute, moveRelative, moveRelative, teleport, updateBedrockAttributes, updateBedrockMetadata, updateHeadLookRotation, updatePositionAndRotation, updateRotationpublic ItemFrameEntity(long entityId,
long geyserId,
EntityType entityType,
com.nukkitx.math.vector.Vector3f position,
com.nukkitx.math.vector.Vector3f motion,
com.nukkitx.math.vector.Vector3f rotation,
com.github.steveice10.mc.protocol.data.game.entity.object.HangingDirection direction)
public void spawnEntity(GeyserSession session)
spawnEntity in class Entitypublic void updateBedrockMetadata(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata entityMetadata,
GeyserSession session)
EntityupdateBedrockMetadata in class EntityentityMetadata - the Java entity metadatasession - GeyserSessionpublic boolean despawnEntity(GeyserSession session)
EntitydespawnEntity in class Entitysession - The GeyserSessionpublic void updateBlock(GeyserSession session)
session - GeyserSession.public static ItemFrameEntity getItemFrameEntity(GeyserSession session, com.nukkitx.math.vector.Vector3i position)
position - position of item frame in Bedrock.session - GeyserSession.Copyright © 2021 GeyserMC. All rights reserved.