Skip to content

Commit

Permalink
Now supporting 1.14.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Exceptionflug committed Jul 19, 2019
1 parent 1b07430 commit 7694883
Show file tree
Hide file tree
Showing 32 changed files with 677 additions and 638 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,25 @@ This is the full portfolio of protocolize dependencies:
<dependency>
<groupId>de.exceptionflug</groupId>
<artifactId>protocolize-api</artifactId>
<version>1.4.5-SNAPSHOT</version>
<version>1.4.6-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>de.exceptionflug</groupId>
<artifactId>protocolize-items</artifactId>
<version>1.4.5-SNAPSHOT</version>
<version>1.4.6-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>de.exceptionflug</groupId>
<artifactId>protocolize-inventory</artifactId>
<version>1.4.5-SNAPSHOT</version>
<version>1.4.6-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>de.exceptionflug</groupId>
<artifactId>protocolize-world</artifactId>
<version>1.4.5-SNAPSHOT</version>
<version>1.4.6-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
```
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>de.exceptionflug</groupId>
<artifactId>protocolize</artifactId>
<version>1.4.5-SNAPSHOT</version>
<version>1.4.6-SNAPSHOT</version>
<packaging>pom</packaging>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion protocolize-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<parent>
<groupId>de.exceptionflug</groupId>
<artifactId>protocolize</artifactId>
<version>1.4.5-SNAPSHOT</version>
<version>1.4.6-SNAPSHOT</version>
</parent>

<groupId>de.exceptionflug</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@ public final class ProtocolVersions {
public final static int MINECRAFT_1_14_1 = 480;
public final static int MINECRAFT_1_14_2 = 485;
public final static int MINECRAFT_1_14_3 = 490;
public final static int MINECRAFT_1_14_4 = 498;


public final static int MINECRAFT_LATEST = MINECRAFT_1_14_4;

private ProtocolVersions() {}


}
8 changes: 4 additions & 4 deletions protocolize-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>de.exceptionflug</groupId>
<artifactId>protocolize</artifactId>
<version>1.4.5-SNAPSHOT</version>
<version>1.4.6-SNAPSHOT</version>
</parent>

<groupId>de.exceptionflug</groupId>
Expand All @@ -18,19 +18,19 @@
<dependency>
<groupId>de.exceptionflug</groupId>
<artifactId>protocolize-api</artifactId>
<version>1.4.5-SNAPSHOT</version>
<version>1.4.6-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>de.exceptionflug</groupId>
<artifactId>protocolize-items</artifactId>
<version>1.4.5-SNAPSHOT</version>
<version>1.4.6-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>de.exceptionflug</groupId>
<artifactId>protocolize-inventory</artifactId>
<version>1.4.5-SNAPSHOT</version>
<version>1.4.6-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
</dependencies>
Expand Down
6 changes: 3 additions & 3 deletions protocolize-inventory/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,18 @@
<parent>
<groupId>de.exceptionflug</groupId>
<artifactId>protocolize</artifactId>
<version>1.4.5-SNAPSHOT</version>
<version>1.4.6-SNAPSHOT</version>
</parent>

<groupId>de.exceptionflug</groupId>
<artifactId>protocolize-inventory</artifactId>
<version>1.4.5-SNAPSHOT</version>
<version>1.4.6-SNAPSHOT</version>

<dependencies>
<dependency>
<groupId>de.exceptionflug</groupId>
<artifactId>protocolize-api</artifactId>
<version>1.4.5-SNAPSHOT</version>
<version>1.4.6-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,30 @@

public enum InventoryType {

GENERIC_9X1(new InventoryIDMapping(MINECRAFT_1_8, MINECRAFT_1_13_2, "minecraft:container", 9), new InventoryIDMapping(MINECRAFT_1_14, MINECRAFT_1_14_3, 0, 9)),
GENERIC_9X2(new InventoryIDMapping(MINECRAFT_1_8, MINECRAFT_1_13_2, "minecraft:container", 18), new InventoryIDMapping(MINECRAFT_1_14, MINECRAFT_1_14_3, 1, 18)),
GENERIC_9X3(new InventoryIDMapping(MINECRAFT_1_8, MINECRAFT_1_13_2, "minecraft:container", 27), new InventoryIDMapping(MINECRAFT_1_14, MINECRAFT_1_14_3, 2, 27)),
GENERIC_9X4(new InventoryIDMapping(MINECRAFT_1_8, MINECRAFT_1_13_2, "minecraft:container", 36), new InventoryIDMapping(MINECRAFT_1_14, MINECRAFT_1_14_3, 3, 36)),
GENERIC_9X5(new InventoryIDMapping(MINECRAFT_1_8, MINECRAFT_1_13_2, "minecraft:container", 45), new InventoryIDMapping(MINECRAFT_1_14, MINECRAFT_1_14_3, 4, 45)),
GENERIC_9X6(new InventoryIDMapping(MINECRAFT_1_8, MINECRAFT_1_13_2, "minecraft:container", 54), new InventoryIDMapping(MINECRAFT_1_14, MINECRAFT_1_14_3, 5, 54)),
GENERIC_3X3(new InventoryIDMapping(MINECRAFT_1_8, MINECRAFT_1_13_2, "minecraft:dropper", 9), new InventoryIDMapping(MINECRAFT_1_14, MINECRAFT_1_14_3, 6, 9)),
ANVIL(new InventoryIDMapping(MINECRAFT_1_8, MINECRAFT_1_13_2, "minecraft:anvil", 3), new InventoryIDMapping(MINECRAFT_1_14, MINECRAFT_1_14_3, 7, 3)),
BEACON(new InventoryIDMapping(MINECRAFT_1_8, MINECRAFT_1_13_2, "minecraft:beacon", 1), new InventoryIDMapping(MINECRAFT_1_14, MINECRAFT_1_14_3, 8, 1)),
BLAST_FURNACE(new InventoryIDMapping(MINECRAFT_1_14, MINECRAFT_1_14_3, 9, 2)),
BREWING_STAND(new InventoryIDMapping(MINECRAFT_1_8, MINECRAFT_1_8, "minecraft:brewing_stand", 4), new InventoryIDMapping(MINECRAFT_1_9, MINECRAFT_1_13_2, "minecraft:brewing_stand", 5), new InventoryIDMapping(MINECRAFT_1_14, MINECRAFT_1_14_3, 10, 5)),
CRAFTING(new InventoryIDMapping(MINECRAFT_1_8, MINECRAFT_1_13_2, "minecraft:crafting_table", 10), new InventoryIDMapping(MINECRAFT_1_14, MINECRAFT_1_14_3, 11, 10)),
ENCHANTMENT(new InventoryIDMapping(MINECRAFT_1_8, MINECRAFT_1_13_2, "minecraft:enchanting_table", 2), new InventoryIDMapping(MINECRAFT_1_14, MINECRAFT_1_14_3, 12, 2)),
FURNACE(new InventoryIDMapping(MINECRAFT_1_8, MINECRAFT_1_13_2, "minecraft:furnace", 3), new InventoryIDMapping(MINECRAFT_1_14, MINECRAFT_1_14_3, 13, 3)),
GRINDSTONE(new InventoryIDMapping(MINECRAFT_1_14, MINECRAFT_1_14_3, 14, 3)),
HOPPER(new InventoryIDMapping(MINECRAFT_1_8, MINECRAFT_1_13_2, "minecraft:hopper", 5), new InventoryIDMapping(MINECRAFT_1_14, MINECRAFT_1_14_3, 15, 5)),
LECTERN(new InventoryIDMapping(MINECRAFT_1_14, MINECRAFT_1_14_3, 16, 0)),
LOOM(new InventoryIDMapping(MINECRAFT_1_14, MINECRAFT_1_14_3, 17, 4)),
MERCHANT(new InventoryIDMapping(MINECRAFT_1_8, MINECRAFT_1_13_2, "minecraft:villager", 3), new InventoryIDMapping(MINECRAFT_1_14, MINECRAFT_1_14_3, 18, 3)),
SHULKER_BOX(new InventoryIDMapping(MINECRAFT_1_9, MINECRAFT_1_13_2, "minecraft:shulker_box", 27), new InventoryIDMapping(MINECRAFT_1_14, MINECRAFT_1_14_3, 19, 27)),
SMOKER(new InventoryIDMapping(MINECRAFT_1_14, MINECRAFT_1_14_3, 20, 3)),
CARTOGRAPHY(new InventoryIDMapping(MINECRAFT_1_14, MINECRAFT_1_14_3, 21, 3)),
STONECUTTER(new InventoryIDMapping(MINECRAFT_1_14, MINECRAFT_1_14_3, 22, 2)),
PLAYER(new InventoryIDMapping(MINECRAFT_1_8, MINECRAFT_1_8, "Player", 45), new InventoryIDMapping(MINECRAFT_1_9, MINECRAFT_1_13_2, "Player", 46), new InventoryIDMapping(MINECRAFT_1_14, MINECRAFT_1_14_3, -1, 46));
GENERIC_9X1(new InventoryIDMapping(MINECRAFT_1_8, MINECRAFT_1_13_2, "minecraft:container", 9), new InventoryIDMapping(MINECRAFT_1_14, MINECRAFT_LATEST, 0, 9)),
GENERIC_9X2(new InventoryIDMapping(MINECRAFT_1_8, MINECRAFT_1_13_2, "minecraft:container", 18), new InventoryIDMapping(MINECRAFT_1_14, MINECRAFT_LATEST, 1, 18)),
GENERIC_9X3(new InventoryIDMapping(MINECRAFT_1_8, MINECRAFT_1_13_2, "minecraft:container", 27), new InventoryIDMapping(MINECRAFT_1_14, MINECRAFT_LATEST, 2, 27)),
GENERIC_9X4(new InventoryIDMapping(MINECRAFT_1_8, MINECRAFT_1_13_2, "minecraft:container", 36), new InventoryIDMapping(MINECRAFT_1_14, MINECRAFT_LATEST, 3, 36)),
GENERIC_9X5(new InventoryIDMapping(MINECRAFT_1_8, MINECRAFT_1_13_2, "minecraft:container", 45), new InventoryIDMapping(MINECRAFT_1_14, MINECRAFT_LATEST, 4, 45)),
GENERIC_9X6(new InventoryIDMapping(MINECRAFT_1_8, MINECRAFT_1_13_2, "minecraft:container", 54), new InventoryIDMapping(MINECRAFT_1_14, MINECRAFT_LATEST, 5, 54)),
GENERIC_3X3(new InventoryIDMapping(MINECRAFT_1_8, MINECRAFT_1_13_2, "minecraft:dropper", 9), new InventoryIDMapping(MINECRAFT_1_14, MINECRAFT_LATEST, 6, 9)),
ANVIL(new InventoryIDMapping(MINECRAFT_1_8, MINECRAFT_1_13_2, "minecraft:anvil", 3), new InventoryIDMapping(MINECRAFT_1_14, MINECRAFT_LATEST, 7, 3)),
BEACON(new InventoryIDMapping(MINECRAFT_1_8, MINECRAFT_1_13_2, "minecraft:beacon", 1), new InventoryIDMapping(MINECRAFT_1_14, MINECRAFT_LATEST, 8, 1)),
BLAST_FURNACE(new InventoryIDMapping(MINECRAFT_1_14, MINECRAFT_LATEST, 9, 2)),
BREWING_STAND(new InventoryIDMapping(MINECRAFT_1_8, MINECRAFT_1_8, "minecraft:brewing_stand", 4), new InventoryIDMapping(MINECRAFT_1_9, MINECRAFT_1_13_2, "minecraft:brewing_stand", 5), new InventoryIDMapping(MINECRAFT_1_14, MINECRAFT_LATEST, 10, 5)),
CRAFTING(new InventoryIDMapping(MINECRAFT_1_8, MINECRAFT_1_13_2, "minecraft:crafting_table", 10), new InventoryIDMapping(MINECRAFT_1_14, MINECRAFT_LATEST, 11, 10)),
ENCHANTMENT(new InventoryIDMapping(MINECRAFT_1_8, MINECRAFT_1_13_2, "minecraft:enchanting_table", 2), new InventoryIDMapping(MINECRAFT_1_14, MINECRAFT_LATEST, 12, 2)),
FURNACE(new InventoryIDMapping(MINECRAFT_1_8, MINECRAFT_1_13_2, "minecraft:furnace", 3), new InventoryIDMapping(MINECRAFT_1_14, MINECRAFT_LATEST, 13, 3)),
GRINDSTONE(new InventoryIDMapping(MINECRAFT_1_14, MINECRAFT_LATEST, 14, 3)),
HOPPER(new InventoryIDMapping(MINECRAFT_1_8, MINECRAFT_1_13_2, "minecraft:hopper", 5), new InventoryIDMapping(MINECRAFT_1_14, MINECRAFT_LATEST, 15, 5)),
LECTERN(new InventoryIDMapping(MINECRAFT_1_14, MINECRAFT_LATEST, 16, 0)),
LOOM(new InventoryIDMapping(MINECRAFT_1_14, MINECRAFT_LATEST, 17, 4)),
MERCHANT(new InventoryIDMapping(MINECRAFT_1_8, MINECRAFT_1_13_2, "minecraft:villager", 3), new InventoryIDMapping(MINECRAFT_1_14, MINECRAFT_LATEST, 18, 3)),
SHULKER_BOX(new InventoryIDMapping(MINECRAFT_1_9, MINECRAFT_1_13_2, "minecraft:shulker_box", 27), new InventoryIDMapping(MINECRAFT_1_14, MINECRAFT_LATEST, 19, 27)),
SMOKER(new InventoryIDMapping(MINECRAFT_1_14, MINECRAFT_LATEST, 20, 3)),
CARTOGRAPHY(new InventoryIDMapping(MINECRAFT_1_14, MINECRAFT_LATEST, 21, 3)),
STONECUTTER(new InventoryIDMapping(MINECRAFT_1_14, MINECRAFT_LATEST, 22, 2)),
PLAYER(new InventoryIDMapping(MINECRAFT_1_8, MINECRAFT_1_8, "Player", 45), new InventoryIDMapping(MINECRAFT_1_9, MINECRAFT_1_13_2, "Player", 46), new InventoryIDMapping(MINECRAFT_1_14, MINECRAFT_LATEST, -1, 46));

private final InventoryIDMapping[] mappings;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public class ClickWindow extends AbstractPacket {
MAPPING.put(MINECRAFT_1_14_1, 0x09);
MAPPING.put(MINECRAFT_1_14_2, 0x09);
MAPPING.put(MINECRAFT_1_14_3, 0x09);
MAPPING.put(MINECRAFT_1_14_4, 0x09);
}

private int windowId, actionNumber;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public class CloseWindow extends AbstractPacket {
MAPPING_CLIENTBOUND.put(MINECRAFT_1_14_1, 0x13);
MAPPING_CLIENTBOUND.put(MINECRAFT_1_14_2, 0x13);
MAPPING_CLIENTBOUND.put(MINECRAFT_1_14_3, 0x13);
MAPPING_CLIENTBOUND.put(MINECRAFT_1_14_4, 0x13);

MAPPING_SERVERBOUND.put(MINECRAFT_1_8, 0x0D);
MAPPING_SERVERBOUND.put(MINECRAFT_1_9, 0x08);
Expand All @@ -53,6 +54,7 @@ public class CloseWindow extends AbstractPacket {
MAPPING_SERVERBOUND.put(MINECRAFT_1_14_1, 0x0A);
MAPPING_SERVERBOUND.put(MINECRAFT_1_14_2, 0x0A);
MAPPING_SERVERBOUND.put(MINECRAFT_1_14_3, 0x0A);
MAPPING_SERVERBOUND.put(MINECRAFT_1_14_4, 0x0A);
}

private int windowId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public class ConfirmTransaction extends AbstractPacket {
MAPPING_CLIENTBOUND.put(MINECRAFT_1_14_1, 0x12);
MAPPING_CLIENTBOUND.put(MINECRAFT_1_14_2, 0x12);
MAPPING_CLIENTBOUND.put(MINECRAFT_1_14_3, 0x12);
MAPPING_CLIENTBOUND.put(MINECRAFT_1_14_4, 0x12);

MAPPING_SERVERBOUND.put(MINECRAFT_1_9, 0x05);
MAPPING_SERVERBOUND.put(MINECRAFT_1_9_1, 0x05);
Expand All @@ -54,6 +55,7 @@ public class ConfirmTransaction extends AbstractPacket {
MAPPING_SERVERBOUND.put(MINECRAFT_1_14_1, 0x07);
MAPPING_SERVERBOUND.put(MINECRAFT_1_14_2, 0x07);
MAPPING_SERVERBOUND.put(MINECRAFT_1_14_3, 0x07);
MAPPING_SERVERBOUND.put(MINECRAFT_1_14_4, 0x07);
}

private int windowId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public class OpenWindow extends AbstractPacket {
MAPPING.put(MINECRAFT_1_14_1, 0x2E);
MAPPING.put(MINECRAFT_1_14_2, 0x2E);
MAPPING.put(MINECRAFT_1_14_3, 0x2E);
MAPPING.put(MINECRAFT_1_14_4, 0x2E);
}

private int windowId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public class WindowProperty extends AbstractPacket {
MAPPING.put(MINECRAFT_1_14_1, 0x15);
MAPPING.put(MINECRAFT_1_14_2, 0x15);
MAPPING.put(MINECRAFT_1_14_3, 0x15);
MAPPING.put(MINECRAFT_1_14_4, 0x15);
}

private int windowId;
Expand Down
6 changes: 3 additions & 3 deletions protocolize-items/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<plugin>
<groupId>de.exceptionflug</groupId>
<artifactId>protocolize-protogen-plugin</artifactId>
<version>1.4.5-SNAPSHOT</version>
<version>1.4.6-SNAPSHOT</version>
<executions>
<execution>
<phase>generate-sources</phase>
Expand All @@ -33,12 +33,12 @@
<parent>
<groupId>de.exceptionflug</groupId>
<artifactId>protocolize</artifactId>
<version>1.4.5-SNAPSHOT</version>
<version>1.4.6-SNAPSHOT</version>
</parent>

<groupId>de.exceptionflug</groupId>
<artifactId>protocolize-items</artifactId>
<version>1.4.5-SNAPSHOT</version>
<version>1.4.6-SNAPSHOT</version>

<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public class BlockPlacement extends AbstractPacket {
MAPPING.put(MINECRAFT_1_14_1, 0x2C);
MAPPING.put(MINECRAFT_1_14_2, 0x2C);
MAPPING.put(MINECRAFT_1_14_3, 0x2C);
MAPPING.put(MINECRAFT_1_14_4, 0x2C);
}

private BlockPosition position;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public class HeldItemChange extends AbstractPacket {
MAPPING_CLIENTBOUND.put(MINECRAFT_1_14_1, 0x3F);
MAPPING_CLIENTBOUND.put(MINECRAFT_1_14_2, 0x3F);
MAPPING_CLIENTBOUND.put(MINECRAFT_1_14_3, 0x3F);
MAPPING_CLIENTBOUND.put(MINECRAFT_1_14_4, 0x3F);

MAPPING_SERVERBOUND.put(MINECRAFT_1_8, 0x09);
MAPPING_SERVERBOUND.put(MINECRAFT_1_9, 0x17);
Expand All @@ -53,6 +54,7 @@ public class HeldItemChange extends AbstractPacket {
MAPPING_SERVERBOUND.put(MINECRAFT_1_14_1, 0x23);
MAPPING_SERVERBOUND.put(MINECRAFT_1_14_2, 0x23);
MAPPING_SERVERBOUND.put(MINECRAFT_1_14_3, 0x23);
MAPPING_SERVERBOUND.put(MINECRAFT_1_14_4, 0x23);
}

private short newSlot;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public class SetSlot extends AbstractPacket {
MAPPING.put(MINECRAFT_1_14_1, 0x16);
MAPPING.put(MINECRAFT_1_14_2, 0x16);
MAPPING.put(MINECRAFT_1_14_3, 0x16);
MAPPING.put(MINECRAFT_1_14_4, 0x16);
}

private byte windowId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public class UseItem extends AbstractPacket {
MAPPING.put(MINECRAFT_1_14_1, 0x2D);
MAPPING.put(MINECRAFT_1_14_2, 0x2D);
MAPPING.put(MINECRAFT_1_14_3, 0x2D);
MAPPING.put(MINECRAFT_1_14_4, 0x2D);
}

private Hand hand;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public class WindowItems extends AbstractPacket {
MAPPING.put(MINECRAFT_1_14_1, 0x14);
MAPPING.put(MINECRAFT_1_14_2, 0x14);
MAPPING.put(MINECRAFT_1_14_3, 0x14);
MAPPING.put(MINECRAFT_1_14_4, 0x14);
}

public WindowItems(final short windowId, final List<ItemStack> items) {
Expand Down
Loading

0 comments on commit 7694883

Please sign in to comment.