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 Classes -
Field Summary
Fields inherited from class net.minestom.server.entity.metadata.EntityMeta
metadata
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> T
get
(@NotNull DataComponent<T> component) int
@NotNull PaintingMeta.Orientation
@NotNull Holder
<PaintingVariant> Deprecated.boolean
protected <T> void
set
(@NotNull DataComponent<T> component, T value) void
setOrientation
(@NotNull PaintingMeta.Orientation orientation) Sets orientation of the painting.void
setVariant
(@NotNull Holder<PaintingVariant> value) Deprecated.useDataComponents.PAINTING_VARIANT
instead.Methods inherited from class net.minestom.server.entity.metadata.EntityMeta
consumeEntity, getAirTicks, getComponent, getCustomName, getPose, getTickFrozen, isCustomNameVisible, isFlyingWithElytra, isHasGlowingEffect, isHasNoGravity, isInvisible, isOnFire, isSilent, isSneaking, isSprinting, isSwimming, setAirTicks, setComponent, setCustomName, setCustomNameVisible, setFlyingWithElytra, setHasGlowingEffect, setHasNoGravity, setInvisible, setNotifyAboutChanges, setOnFire, setPose, setSilent, setSneaking, setSprinting, setSwimming, setTickFrozen
-
Constructor Details
-
PaintingMeta
-
-
Method Details
-
getVariant
Deprecated.useDataComponents.PAINTING_VARIANT
instead. -
setVariant
Deprecated.useDataComponents.PAINTING_VARIANT
instead. -
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:
getObjectData
in interfaceObjectDataProvider
-
requiresVelocityPacketAtSpawn
public boolean requiresVelocityPacketAtSpawn()- Specified by:
requiresVelocityPacketAtSpawn
in interfaceObjectDataProvider
-
get
- Overrides:
get
in classEntityMeta
-
set
- Overrides:
set
in classEntityMeta
-
DataComponents.PAINTING_VARIANT
instead.