Skip to content

Commit

Permalink
Add minecraft 1.16.3 support
Browse files Browse the repository at this point in the history
version bump to v1.6.4
  • Loading branch information
Exceptionflug committed Sep 10, 2020
1 parent 621aafe commit c7291d9
Show file tree
Hide file tree
Showing 30 changed files with 1,035 additions and 1,015 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,25 +24,25 @@ This is the full portfolio of protocolize dependencies:
<dependency>
<groupId>de.exceptionflug</groupId>
<artifactId>protocolize-api</artifactId>
<version>1.6.3-SNAPSHOT</version>
<version>1.6.4-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>de.exceptionflug</groupId>
<artifactId>protocolize-items</artifactId>
<version>1.6.3-SNAPSHOT</version>
<version>1.6.4-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>de.exceptionflug</groupId>
<artifactId>protocolize-inventory</artifactId>
<version>1.6.3-SNAPSHOT</version>
<version>1.6.4-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>de.exceptionflug</groupId>
<artifactId>protocolize-world</artifactId>
<version>1.6.3-SNAPSHOT</version>
<version>1.6.4-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.6.3-SNAPSHOT</version>
<version>1.6.4-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.6.3-SNAPSHOT</version>
<version>1.6.4-SNAPSHOT</version>
</parent>

<groupId>de.exceptionflug</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ public final class ProtocolVersions {
public final static int MINECRAFT_1_16 = 735;
public final static int MINECRAFT_1_16_1 = 736;
public final static int MINECRAFT_1_16_2 = 751;
public final static int MINECRAFT_1_16_3 = 753;


public final static int MINECRAFT_LATEST = MINECRAFT_1_16_2;
public final static int MINECRAFT_LATEST = MINECRAFT_1_16_3;

private ProtocolVersions() {}

Expand Down
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.6.3-SNAPSHOT</version>
<version>1.6.4-SNAPSHOT</version>
</parent>

<groupId>de.exceptionflug</groupId>
Expand All @@ -18,19 +18,19 @@
<dependency>
<groupId>de.exceptionflug</groupId>
<artifactId>protocolize-api</artifactId>
<version>1.6.3-SNAPSHOT</version>
<version>1.6.4-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>de.exceptionflug</groupId>
<artifactId>protocolize-items</artifactId>
<version>1.6.3-SNAPSHOT</version>
<version>1.6.4-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>de.exceptionflug</groupId>
<artifactId>protocolize-inventory</artifactId>
<version>1.6.3-SNAPSHOT</version>
<version>1.6.4-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.6.3-SNAPSHOT</version>
<version>1.6.4-SNAPSHOT</version>
</parent>

<groupId>de.exceptionflug</groupId>
<artifactId>protocolize-inventory</artifactId>
<version>1.6.3-SNAPSHOT</version>
<version>1.6.4-SNAPSHOT</version>

<dependencies>
<dependency>
<groupId>de.exceptionflug</groupId>
<artifactId>protocolize-api</artifactId>
<version>1.6.3-SNAPSHOT</version>
<version>1.6.4-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public class ClickWindow extends AbstractPacket {
MAPPING.put(MINECRAFT_1_16, 0x09);
MAPPING.put(MINECRAFT_1_16_1, 0x09);
MAPPING.put(MINECRAFT_1_16_2, 0x09);
MAPPING.put(MINECRAFT_1_16_3, 0x09);
}

private int windowId, actionNumber;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public class CloseWindow extends AbstractPacket {
MAPPING_CLIENTBOUND.put(MINECRAFT_1_16, 0x13);
MAPPING_CLIENTBOUND.put(MINECRAFT_1_16_1, 0x13);
MAPPING_CLIENTBOUND.put(MINECRAFT_1_16_2, 0x12);
MAPPING_CLIENTBOUND.put(MINECRAFT_1_16_3, 0x12);

MAPPING_SERVERBOUND.put(MINECRAFT_1_8, 0x0D);
MAPPING_SERVERBOUND.put(MINECRAFT_1_9, 0x08);
Expand All @@ -67,6 +68,7 @@ public class CloseWindow extends AbstractPacket {
MAPPING_SERVERBOUND.put(MINECRAFT_1_16, 0x0A);
MAPPING_SERVERBOUND.put(MINECRAFT_1_16_1, 0x0A);
MAPPING_SERVERBOUND.put(MINECRAFT_1_16_2, 0x0A);
MAPPING_SERVERBOUND.put(MINECRAFT_1_16_3, 0x0A);
}

private int windowId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public class ConfirmTransaction extends AbstractPacket {
MAPPING_CLIENTBOUND.put(MINECRAFT_1_16, 0x12);
MAPPING_CLIENTBOUND.put(MINECRAFT_1_16_1, 0x12);
MAPPING_CLIENTBOUND.put(MINECRAFT_1_16_2, 0x11);
MAPPING_CLIENTBOUND.put(MINECRAFT_1_16_3, 0x11);

MAPPING_SERVERBOUND.put(MINECRAFT_1_9, 0x05);
MAPPING_SERVERBOUND.put(MINECRAFT_1_9_1, 0x05);
Expand All @@ -65,7 +66,8 @@ public class ConfirmTransaction extends AbstractPacket {
MAPPING_SERVERBOUND.put(MINECRAFT_1_15_1, 0x07);
MAPPING_SERVERBOUND.put(MINECRAFT_1_15_2, 0x07);
MAPPING_SERVERBOUND.put(MINECRAFT_1_16_1, 0x07);
MAPPING_SERVERBOUND.put(MINECRAFT_1_16_1, 0x07);
MAPPING_SERVERBOUND.put(MINECRAFT_1_16_2, 0x07);
MAPPING_SERVERBOUND.put(MINECRAFT_1_16_3, 0x07);
}

private int windowId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public class OpenWindow extends AbstractPacket {
MAPPING.put(MINECRAFT_1_16, 0x2E);
MAPPING.put(MINECRAFT_1_16_1, 0x2E);
MAPPING.put(MINECRAFT_1_16_2, 0x2D);
MAPPING.put(MINECRAFT_1_16_3, 0x2D);
}

private int windowId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public class WindowProperty extends AbstractPacket {
MAPPING.put(MINECRAFT_1_16, 0x15);
MAPPING.put(MINECRAFT_1_16_1, 0x15);
MAPPING.put(MINECRAFT_1_16_2, 0x14);
MAPPING.put(MINECRAFT_1_16_3, 0x14);
}

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.6.3-SNAPSHOT</version>
<version>1.6.4-SNAPSHOT</version>
<executions>
<execution>
<phase>generate-sources</phase>
Expand All @@ -33,12 +33,12 @@
<parent>
<groupId>de.exceptionflug</groupId>
<artifactId>protocolize</artifactId>
<version>1.6.3-SNAPSHOT</version>
<version>1.6.4-SNAPSHOT</version>
</parent>

<groupId>de.exceptionflug</groupId>
<artifactId>protocolize-items</artifactId>
<version>1.6.3-SNAPSHOT</version>
<version>1.6.4-SNAPSHOT</version>

<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public class BlockPlacement extends AbstractPacket {
MAPPING.put(MINECRAFT_1_16, 0x2D);
MAPPING.put(MINECRAFT_1_16_1, 0x2D);
MAPPING.put(MINECRAFT_1_16_2, 0x2E);
MAPPING.put(MINECRAFT_1_16_3, 0x2E);
}

private BlockPosition position;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public class HeldItemChange extends AbstractPacket {
MAPPING_CLIENTBOUND.put(MINECRAFT_1_16, 0x3F);
MAPPING_CLIENTBOUND.put(MINECRAFT_1_16_1, 0x3F);
MAPPING_CLIENTBOUND.put(MINECRAFT_1_16_2, 0x3F);
MAPPING_CLIENTBOUND.put(MINECRAFT_1_16_3, 0x3F);

MAPPING_SERVERBOUND.put(MINECRAFT_1_8, 0x09);
MAPPING_SERVERBOUND.put(MINECRAFT_1_9, 0x17);
Expand All @@ -67,6 +68,7 @@ public class HeldItemChange extends AbstractPacket {
MAPPING_SERVERBOUND.put(MINECRAFT_1_16, 0x24);
MAPPING_SERVERBOUND.put(MINECRAFT_1_16_1, 0x24);
MAPPING_SERVERBOUND.put(MINECRAFT_1_16_2, 0x25);
MAPPING_SERVERBOUND.put(MINECRAFT_1_16_3, 0x25);
}

private short newSlot;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public class SetSlot extends AbstractPacket {
MAPPING.put(MINECRAFT_1_16, 0x16);
MAPPING.put(MINECRAFT_1_16_1, 0x16);
MAPPING.put(MINECRAFT_1_16_2, 0x15);
MAPPING.put(MINECRAFT_1_16_3, 0x15);
}

private byte windowId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public class UseItem extends AbstractPacket {
MAPPING.put(MINECRAFT_1_16, 0x2E);
MAPPING.put(MINECRAFT_1_16_1, 0x2E);
MAPPING.put(MINECRAFT_1_16_2, 0x2F);
MAPPING.put(MINECRAFT_1_16_3, 0x2F);
}

private Hand hand;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public class WindowItems extends AbstractPacket {
MAPPING.put(MINECRAFT_1_16, 0x14);
MAPPING.put(MINECRAFT_1_16_1, 0x14);
MAPPING.put(MINECRAFT_1_16_2, 0x13);
MAPPING.put(MINECRAFT_1_16_3, 0x13);
}

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

0 comments on commit c7291d9

Please sign in to comment.