From 9b7a4b79f7614db779ed86b9c84e7529e9ab1f38 Mon Sep 17 00:00:00 2001 From: Matsv Date: Sun, 27 Jan 2019 14:25:27 +0100 Subject: [PATCH] :paperclip: Rename 1.13.2 classes --- .../Protocol1_13_1To1_13_2.java | 12 ++++++------ .../{EntityPackets.java => EntityPackets1_13_2.java} | 2 +- ...ntoryPackets.java => InventoryPackets1_13_2.java} | 2 +- .../{WorldPackets.java => WorldPackets1_13_2.java} | 3 ++- 4 files changed, 10 insertions(+), 9 deletions(-) rename core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_13_1to1_13_2/packets/{EntityPackets.java => EntityPackets1_13_2.java} (99%) rename core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_13_1to1_13_2/packets/{InventoryPackets.java => InventoryPackets1_13_2.java} (99%) rename core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_13_1to1_13_2/packets/{WorldPackets.java => WorldPackets1_13_2.java} (97%) diff --git a/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_13_1to1_13_2/Protocol1_13_1To1_13_2.java b/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_13_1to1_13_2/Protocol1_13_1To1_13_2.java index d724dce7..33f7af9e 100644 --- a/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_13_1to1_13_2/Protocol1_13_1To1_13_2.java +++ b/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_13_1to1_13_2/Protocol1_13_1To1_13_2.java @@ -1,6 +1,9 @@ package nl.matsv.viabackwards.protocol.protocol1_13_1to1_13_2; import nl.matsv.viabackwards.api.BackwardsProtocol; +import nl.matsv.viabackwards.protocol.protocol1_13_1to1_13_2.packets.EntityPackets1_13_2; +import nl.matsv.viabackwards.protocol.protocol1_13_1to1_13_2.packets.InventoryPackets1_13_2; +import nl.matsv.viabackwards.protocol.protocol1_13_1to1_13_2.packets.WorldPackets1_13_2; import us.myles.ViaVersion.api.PacketWrapper; import us.myles.ViaVersion.api.data.UserConnection; import us.myles.ViaVersion.api.minecraft.item.Item; @@ -8,17 +11,14 @@ import us.myles.ViaVersion.api.remapper.PacketHandler; import us.myles.ViaVersion.api.remapper.PacketRemapper; import us.myles.ViaVersion.api.type.Type; import us.myles.ViaVersion.packets.State; -import nl.matsv.viabackwards.protocol.protocol1_13_1to1_13_2.packets.EntityPackets; -import nl.matsv.viabackwards.protocol.protocol1_13_1to1_13_2.packets.InventoryPackets; -import nl.matsv.viabackwards.protocol.protocol1_13_1to1_13_2.packets.WorldPackets; public class Protocol1_13_1To1_13_2 extends BackwardsProtocol { @Override protected void registerPackets() { - InventoryPackets.register(this); - WorldPackets.register(this); - EntityPackets.register(this); + InventoryPackets1_13_2.register(this); + WorldPackets1_13_2.register(this); + EntityPackets1_13_2.register(this); //Edit Book registerIncoming(State.PLAY, 0x0B, 0x0B, new PacketRemapper() { diff --git a/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_13_1to1_13_2/packets/EntityPackets.java b/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_13_1to1_13_2/packets/EntityPackets1_13_2.java similarity index 99% rename from core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_13_1to1_13_2/packets/EntityPackets.java rename to core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_13_1to1_13_2/packets/EntityPackets1_13_2.java index ad4ecd2d..000800c1 100644 --- a/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_13_1to1_13_2/packets/EntityPackets.java +++ b/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_13_1to1_13_2/packets/EntityPackets1_13_2.java @@ -12,7 +12,7 @@ import us.myles.ViaVersion.api.type.types.version.Types1_13; import us.myles.ViaVersion.api.type.types.version.Types1_13_2; import us.myles.ViaVersion.packets.State; -public class EntityPackets { +public class EntityPackets1_13_2 { public static void register(Protocol protocol) { diff --git a/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_13_1to1_13_2/packets/InventoryPackets.java b/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_13_1to1_13_2/packets/InventoryPackets1_13_2.java similarity index 99% rename from core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_13_1to1_13_2/packets/InventoryPackets.java rename to core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_13_1to1_13_2/packets/InventoryPackets1_13_2.java index ecd88eec..44a44b48 100644 --- a/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_13_1to1_13_2/packets/InventoryPackets.java +++ b/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_13_1to1_13_2/packets/InventoryPackets1_13_2.java @@ -7,7 +7,7 @@ import us.myles.ViaVersion.api.remapper.PacketRemapper; import us.myles.ViaVersion.api.type.Type; import us.myles.ViaVersion.packets.State; -public class InventoryPackets { +public class InventoryPackets1_13_2 { public static void register(Protocol protocol) { diff --git a/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_13_1to1_13_2/packets/WorldPackets.java b/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_13_1to1_13_2/packets/WorldPackets1_13_2.java similarity index 97% rename from core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_13_1to1_13_2/packets/WorldPackets.java rename to core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_13_1to1_13_2/packets/WorldPackets1_13_2.java index 9fc17e0a..92d31a2e 100644 --- a/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_13_1to1_13_2/packets/WorldPackets.java +++ b/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_13_1to1_13_2/packets/WorldPackets1_13_2.java @@ -7,7 +7,7 @@ import us.myles.ViaVersion.api.remapper.PacketRemapper; import us.myles.ViaVersion.api.type.Type; import us.myles.ViaVersion.packets.State; -public class WorldPackets { +public class WorldPackets1_13_2 { public static void register(Protocol protocol) { //spawn particle @@ -24,6 +24,7 @@ public class WorldPackets { map(Type.FLOAT); // 7 - Offset Z map(Type.FLOAT); // 8 - Particle Data map(Type.INT); // 9 - Particle Count + handler(new PacketHandler() { @Override public void handle(PacketWrapper wrapper) throws Exception {