Class WrapperPlayServerMapData.MapDecoration
java.lang.Object
com.github.retrooper.packetevents.wrapper.play.server.WrapperPlayServerMapData.MapDecoration
- Enclosing class:
WrapperPlayServerMapData
-
Constructor Summary
ConstructorDescriptionMapDecoration
(MapDecorationType type, byte x, byte y, byte direction, @Nullable net.kyori.adventure.text.Component displayName) -
Method Summary
Modifier and TypeMethodDescriptionbyte
@Nullable net.kyori.adventure.text.Component
getType()
byte
getX()
byte
getY()
read
(PacketWrapper<?> wrapper) void
setDirection
(byte direction) void
setDisplayName
(@Nullable net.kyori.adventure.text.Component displayName) void
setType
(MapDecorationType type) void
setX
(byte x) void
setY
(byte y) static void
write
(PacketWrapper<?> wrapper, WrapperPlayServerMapData.MapDecoration decoration)
-
Constructor Details
-
MapDecoration
public MapDecoration(MapDecorationType type, byte x, byte y, byte direction, @Nullable @Nullable net.kyori.adventure.text.Component displayName)
-
-
Method Details
-
read
-
write
public static void write(PacketWrapper<?> wrapper, WrapperPlayServerMapData.MapDecoration decoration) -
getType
-
setType
-
getX
public byte getX() -
setX
public void setX(byte x) -
getY
public byte getY() -
setY
public void setY(byte y) -
getDirection
public byte getDirection() -
setDirection
public void setDirection(byte direction) -
getDisplayName
@Nullable public @Nullable net.kyori.adventure.text.Component getDisplayName() -
setDisplayName
public void setDisplayName(@Nullable @Nullable net.kyori.adventure.text.Component displayName)
-