Class PaintingMeta
java.lang.Object
net.minestom.server.entity.metadata.EntityMeta
net.minestom.server.entity.metadata.other.PaintingMeta
- All Implemented Interfaces:
ObjectDataProvider
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Field Summary
FieldsFields inherited from class net.minestom.server.entity.metadata.EntityMeta
metadata -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint@NotNull PaintingMeta.Orientation@NotNull PaintingMeta.VariantbooleanvoidsetOrientation(@NotNull PaintingMeta.Orientation orientation) Sets orientation of the painting.voidsetVariant(@NotNull PaintingMeta.Variant value) Methods inherited from class net.minestom.server.entity.metadata.EntityMeta
consumeEntity, getAirTicks, getCustomName, getMask, getMaskBit, getPose, getTickFrozen, isCustomNameVisible, isFlyingWithElytra, isHasGlowingEffect, isHasNoGravity, isInvisible, isOnFire, isSilent, isSneaking, isSprinting, isSwimming, setAirTicks, setCustomName, setCustomNameVisible, setFlyingWithElytra, setHasGlowingEffect, setHasNoGravity, setInvisible, setMask, setMaskBit, setNotifyAboutChanges, setOnFire, setPose, setSilent, setSneaking, setSprinting, setSwimming, setTickFrozen
-
Field Details
-
OFFSET
public static final byte OFFSET- See Also:
-
MAX_OFFSET
public static final byte MAX_OFFSET- See Also:
-
-
Constructor Details
-
PaintingMeta
-
-
Method Details
-
getVariant
-
setVariant
-
getOrientation
-
setOrientation
Sets orientation of the painting. This is possible only before spawn packet is sent.- Parameters:
orientation- the orientation of the painting.
-
getObjectData
public int getObjectData()- Specified by:
getObjectDatain interfaceObjectDataProvider
-
requiresVelocityPacketAtSpawn
public boolean requiresVelocityPacketAtSpawn()- Specified by:
requiresVelocityPacketAtSpawnin interfaceObjectDataProvider
-