Class ClientboundMapItemDataPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.level.ClientboundMapItemDataPacket
- All Implemented Interfaces:
Packet, MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionClientboundMapItemDataPacket(int mapId, byte scale, boolean locked, MapIcon[] icons) ClientboundMapItemDataPacket(int mapId, byte scale, boolean locked, MapIcon[] icons, @Nullable MapData data) ClientboundMapItemDataPacket(io.netty.buffer.ByteBuf in) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanboolean@Nullable MapDatagetData()MapIcon[]getIcons()intgetMapId()bytegetScale()inthashCode()booleanisLocked()voidserialize(io.netty.buffer.ByteBuf out) @NonNull StringtoString()@NonNull ClientboundMapItemDataPacket@NonNull ClientboundMapItemDataPacket@NonNull ClientboundMapItemDataPacketwithLocked(boolean locked) @NonNull ClientboundMapItemDataPacketwithMapId(int mapId) @NonNull ClientboundMapItemDataPacketwithScale(byte scale) Methods inherited from interface Packet
isPriority, isTerminal
-
Constructor Details
-
ClientboundMapItemDataPacket
-
ClientboundMapItemDataPacket
public ClientboundMapItemDataPacket(io.netty.buffer.ByteBuf in) -
ClientboundMapItemDataPacket
-
-
Method Details
-
serialize
public void serialize(io.netty.buffer.ByteBuf out) - Specified by:
serializein interfaceMinecraftPacket
-
getMapId
public int getMapId() -
getScale
public byte getScale() -
isLocked
public boolean isLocked() -
getIcons
-
getData
-
equals
-
canEqual
-
hashCode
-
toString
-
withMapId
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withScale
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withLocked
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withIcons
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withData
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-