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, @NonNull MapIcon[] icons) ClientboundMapItemDataPacket(int mapId, byte scale, boolean locked, @NonNull MapIcon[] icons, MapData data) ClientboundMapItemDataPacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleangetData()@NonNull MapIcon[]getIcons()intgetMapId()bytegetScale()inthashCode()booleanisLocked()voidserialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper) @NonNull StringtoString()@NonNull ClientboundMapItemDataPacket@NonNull ClientboundMapItemDataPacket@NonNull ClientboundMapItemDataPacketwithLocked(boolean locked) @NonNull ClientboundMapItemDataPacketwithMapId(int mapId) @NonNull ClientboundMapItemDataPacketwithScale(byte scale) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.geysermc.mcprotocollib.network.packet.Packet
isPriority
-
Constructor Details
-
ClientboundMapItemDataPacket
public ClientboundMapItemDataPacket(int mapId, byte scale, boolean locked, @NonNull @NonNull MapIcon[] icons) -
ClientboundMapItemDataPacket
-
ClientboundMapItemDataPacket
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceMinecraftPacket
-
getMapId
public int getMapId() -
getScale
public byte getScale() -
isLocked
public boolean isLocked() -
getIcons
-
getData
-
equals
-
canEqual
-
hashCode
public int 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).
-