Package org.geysermc.connector.entity
Class PaintingEntity
java.lang.Object
org.geysermc.connector.entity.Entity
org.geysermc.connector.entity.PaintingEntity
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionPaintingEntity(long entityId, long geyserId, com.nukkitx.math.vector.Vector3f position, PaintingType paintingName, int direction) -
Method Summary
Modifier and TypeMethodDescriptionvoidspawnEntity(GeyserSession session)voidupdateHeadLookRotation(GeyserSession session, float headYaw)Updates an entity's head position.Methods inherited from class org.geysermc.connector.entity.Entity
addAdditionalSpawnData, as, despawnEntity, getBedrockRotation, getMaxAir, is, isShaking, moveAbsolute, moveAbsolute, moveRelative, moveRelative, setAir, setDimensions, setFreezing, setInvisible, teleport, updateBedrockMetadata, updateBedrockMetadata, updatePositionAndRotation, updateRotation
-
Constructor Details
-
PaintingEntity
public PaintingEntity(long entityId, long geyserId, com.nukkitx.math.vector.Vector3f position, PaintingType paintingName, int direction)
-
-
Method Details
-
spawnEntity
- Overrides:
spawnEntityin classEntity
-
updateHeadLookRotation
Description copied from class:EntityUpdates an entity's head position. Used in JavaEntityHeadLookTranslator.- Overrides:
updateHeadLookRotationin classEntity- Parameters:
session- GeyserSession.headYaw- The new head rotation of the entity.
-