Class PaintingMeta

java.lang.Object
net.minestom.server.entity.metadata.EntityMeta
net.minestom.server.entity.metadata.other.PaintingMeta

public class PaintingMeta extends EntityMeta
  • Field Details

  • Constructor Details

    • PaintingMeta

      public PaintingMeta(@NotNull @NotNull Entity entity, @NotNull @NotNull Metadata metadata)
  • Method Details

    • getMotive

      @NotNull public @NotNull PaintingMeta.Motive getMotive()
    • setMotive

      public void setMotive(@NotNull @NotNull PaintingMeta.Motive motive)
      Sets motive of a painting. This is possible only before spawn packet is sent.
      Parameters:
      motive - motive of a painting.
    • getDirection

      @NotNull public @NotNull Direction getDirection()
    • setDirection

      public void setDirection(@NotNull @NotNull Direction direction)
      Sets direction of a painting. This is possible only before spawn packet is sent.
      Parameters:
      direction - direction of a painting.