Class MapUpdateS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.MapUpdateS2CPacket
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public class MapUpdateS2CPacket extends Object implements Packet<ClientPlayPacketListener>
-
Field Summary
-
Constructor Summary
Constructors Constructor Description MapUpdateS2CPacket()MapUpdateS2CPacket(int id, byte scale, boolean showIcons, boolean locked, Collection<MapIcon> icons, byte[] mapColors, int startX, int startZ, int width, int height) -
Method Summary
Modifier and Type Method Description voidapply(MapState mapState)voidapply(ClientPlayPacketListener clientPlayPacketListener)intgetId()voidread(PacketByteBuf buf)voidwrite(PacketByteBuf buf)
-
Field Details
-
Constructor Details
-
MapUpdateS2CPacket
public MapUpdateS2CPacket() -
MapUpdateS2CPacket
public MapUpdateS2CPacket(int id, byte scale, boolean showIcons, boolean locked, Collection<MapIcon> icons, byte[] mapColors, int startX, int startZ, int width, int height)
-
-
Method Details
-
read
- Specified by:
readin interfacePacket<ClientPlayPacketListener>- Throws:
IOException
-
write
- Specified by:
writein interfacePacket<ClientPlayPacketListener>- Throws:
IOException
-
apply
- Specified by:
applyin interfacePacket<ClientPlayPacketListener>
-
getId
@Environment(CLIENT) public int getId() -
apply
-