Class ClientboundMapItemDataPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundMapItemDataPacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
public class ClientboundMapItemDataPacket
extends Object
implements Packet<ClientGamePacketListener>
-
Field Summary
Modifier and TypeFieldDescriptionprivate final MapItemSavedData.MapPatch
private final List<MapDecoration>
private final boolean
private final int
private final byte
-
Constructor Summary
ConstructorDescriptionClientboundMapItemDataPacket
(int p_178970_, byte p_178971_, boolean p_178972_, Collection<MapDecoration> p_178973_, MapItemSavedData.MapPatch p_178974_) ClientboundMapItemDataPacket
(FriendlyByteBuf p_178976_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
applyToMap
(MapItemSavedData p_132438_) int
getMapId()
byte
getScale()
void
handle
(ClientGamePacketListener p_132444_) boolean
isLocked()
void
write
(FriendlyByteBuf p_132447_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.network.protocol.Packet
isSkippable
-
Field Details
-
mapId
private final int mapId -
scale
private final byte scale -
locked
private final boolean locked -
decorations
-
colorPatch
-
-
Constructor Details
-
ClientboundMapItemDataPacket
public ClientboundMapItemDataPacket(int p_178970_, byte p_178971_, boolean p_178972_, @Nullable Collection<MapDecoration> p_178973_, @Nullable MapItemSavedData.MapPatch p_178974_) -
ClientboundMapItemDataPacket
-
-
Method Details
-
write
- Specified by:
write
in interfacePacket<ClientGamePacketListener>
-
handle
- Specified by:
handle
in interfacePacket<ClientGamePacketListener>
-
getMapId
public int getMapId() -
applyToMap
-
getScale
public byte getScale() -
isLocked
public boolean isLocked()
-