Class PaintingEntity

java.lang.Object
org.geysermc.geyser.entity.type.Entity
org.geysermc.geyser.entity.type.PaintingEntity
All Implemented Interfaces:
org.geysermc.geyser.api.entity.type.GeyserEntity

public class PaintingEntity extends Entity
  • Constructor Details

    • PaintingEntity

      public PaintingEntity(GeyserSession session, int entityId, long geyserId, UUID uuid, EntityDefinition<?> definition, org.cloudburstmc.math.vector.Vector3f position, org.cloudburstmc.math.vector.Vector3f motion, float yaw, float pitch, float headYaw, org.geysermc.mcprotocollib.protocol.data.game.entity.object.Direction direction)
  • Method Details

    • spawnEntity

      public void spawnEntity()
      Overrides:
      spawnEntity in class Entity
    • setPaintingType

      public void setPaintingType(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.type.ObjectEntityMetadata<org.geysermc.mcprotocollib.protocol.data.game.entity.type.PaintingType> entityMetadata)
    • updateHeadLookRotation

      public void updateHeadLookRotation(float headYaw)
      Description copied from class: Entity
      Updates an entity's head position. Used in JavaRotateHeadTranslator.
      Overrides:
      updateHeadLookRotation in class Entity
      Parameters:
      headYaw - The new head rotation of the entity.