добавлен класс UnloadChunkPacket
This commit is contained in:
@@ -87,6 +87,7 @@ public enum State {
|
|||||||
.put(BossBarPacket.class, 0x0C)
|
.put(BossBarPacket.class, 0x0C)
|
||||||
.put(ChatMessageServerPacket.class, 0x0F)
|
.put(ChatMessageServerPacket.class, 0x0F)
|
||||||
.put(PluginMessagePacket.class, 0x18)
|
.put(PluginMessagePacket.class, 0x18)
|
||||||
|
.put(UnloadChunkPacket.class, 0x1D)
|
||||||
.put(ChangeGameState.class, 0x1E)
|
.put(ChangeGameState.class, 0x1E)
|
||||||
.put(KeepAlivePacket.class, 0x1F)
|
.put(KeepAlivePacket.class, 0x1F)
|
||||||
.put(ChunkDataPacket.class, 0x20)
|
.put(ChunkDataPacket.class, 0x20)
|
||||||
|
|||||||
@@ -0,0 +1,16 @@
|
|||||||
|
package mc.core.network.proto_1_12_2.packets;
|
||||||
|
|
||||||
|
import lombok.Setter;
|
||||||
|
import mc.core.network.NetOutputStream;
|
||||||
|
import mc.core.network.SCPacket;
|
||||||
|
|
||||||
|
public class UnloadChunkPacket implements SCPacket {
|
||||||
|
@Setter
|
||||||
|
private int x, z;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void writeSelf(NetOutputStream netStream) {
|
||||||
|
netStream.writeInt(x);
|
||||||
|
netStream.writeInt(z);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user