Package org.geysermc.geyser.entity.type
Class PaintingEntity
java.lang.Object
org.geysermc.geyser.entity.type.Entity
org.geysermc.geyser.entity.type.PaintingEntity
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionPaintingEntity(GeyserSession session, int entityId, long geyserId, UUID uuid, com.nukkitx.math.vector.Vector3f position, PaintingType paintingName, int direction) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidupdateHeadLookRotation(float headYaw)Updates an entity's head position.Methods inherited from class org.geysermc.geyser.entity.type.Entity
addAdditionalSpawnData, as, despawnEntity, getBedrockRotation, getFlag, getMaxAir, initializeMetadata, is, isShaking, moveAbsolute, moveAbsolute, moveRelative, moveRelative, setAir, setAirSupply, setBoundingBoxHeight, setBoundingBoxWidth, setDimensions, setDisplayName, setDisplayNameVisible, setFlag, setFlags, setFreezing, setGravity, setInvisible, setPose, setRiderSeatPosition, teleport, updateBedrockMetadata, updateMountOffset, updatePassengerOffsets, updatePositionAndRotation, updateRotation
-
Constructor Details
-
PaintingEntity
public PaintingEntity(GeyserSession session, int entityId, long geyserId, UUID uuid, com.nukkitx.math.vector.Vector3f position, PaintingType paintingName, int direction)
-
-
Method Details
-
spawnEntity
public void spawnEntity()- Overrides:
spawnEntityin classEntity
-
updateHeadLookRotation
public void updateHeadLookRotation(float headYaw)Description copied from class:EntityUpdates an entity's head position. Used in JavaRotateHeadTranslator.- Overrides:
updateHeadLookRotationin classEntity- Parameters:
headYaw- The new head rotation of the entity.
-