public class MapUpdateS2CPacket extends Object implements Packet<ClientPlayPacketListener>
Modifier and Type | Field and Description |
---|---|
private byte[] |
colors |
private int |
height |
private MapIcon[] |
icons |
private int |
id |
private boolean |
locked |
private byte |
scale |
private boolean |
showIcons |
private int |
startX |
private int |
startZ |
private int |
width |
Constructor and Description |
---|
MapUpdateS2CPacket() |
MapUpdateS2CPacket(int id,
byte scale,
boolean showIcons,
boolean locked,
Collection<MapIcon> icons,
byte[] mapColors,
int startX,
int startZ,
int width,
int height) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
void |
apply(MapState mapState) |
int |
getId() |
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWritingErrorSkippable
private int id
private byte scale
private boolean showIcons
private boolean locked
private MapIcon[] icons
private int startX
private int startZ
private int width
private int height
private byte[] colors
public MapUpdateS2CPacket()
public MapUpdateS2CPacket(int id, byte scale, boolean showIcons, boolean locked, Collection<MapIcon> icons, byte[] mapColors, int startX, int startZ, int width, int height)
public void read(PacketByteBuf buf) throws IOException
read
in interface Packet<ClientPlayPacketListener>
IOException
public void write(PacketByteBuf buf) throws IOException
write
in interface Packet<ClientPlayPacketListener>
IOException
public void apply(ClientPlayPacketListener clientPlayPacketListener)
apply
in interface Packet<ClientPlayPacketListener>
@Environment(value=CLIENT) public int getId()
@Environment(value=CLIENT) public void apply(MapState mapState)