Skip to content

Commit

Permalink
1.16.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Exceptionflug committed Jun 24, 2020
1 parent 2d9cbac commit 3a4e301
Show file tree
Hide file tree
Showing 19 changed files with 6,711 additions and 369 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@
<dependency>
<groupId>net.md-5</groupId>
<artifactId>bungeecord-api</artifactId>
<version>1.15-SNAPSHOT</version>
<version>1.16-R0.1-SNAPSHOT</version>
<type>jar</type>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>net.md-5</groupId>
<artifactId>bungeecord-proxy</artifactId>
<version>1.15-SNAPSHOT</version>
<version>1.16-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ public final class ProtocolVersions {
public final static int MINECRAFT_1_15_1 = 575;
public final static int MINECRAFT_1_15_2 = 578;
public final static int MINECRAFT_1_16 = 735;
public final static int MINECRAFT_1_16_1 = 736;


public final static int MINECRAFT_LATEST = MINECRAFT_1_16;
public final static int MINECRAFT_LATEST = MINECRAFT_1_16_1;

private ProtocolVersions() {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public class ClickWindow extends AbstractPacket {
MAPPING.put(MINECRAFT_1_15_1, 0x09);
MAPPING.put(MINECRAFT_1_15_2, 0x09);
MAPPING.put(MINECRAFT_1_16, 0x09);
MAPPING.put(MINECRAFT_1_16_1, 0x09);
}

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

MAPPING_SERVERBOUND.put(MINECRAFT_1_8, 0x0D);
MAPPING_SERVERBOUND.put(MINECRAFT_1_9, 0x08);
Expand All @@ -63,6 +64,7 @@ public class CloseWindow extends AbstractPacket {
MAPPING_SERVERBOUND.put(MINECRAFT_1_15_1, 0x0A);
MAPPING_SERVERBOUND.put(MINECRAFT_1_15_2, 0x0A);
MAPPING_SERVERBOUND.put(MINECRAFT_1_16, 0x0A);
MAPPING_SERVERBOUND.put(MINECRAFT_1_16_1, 0x0A);
}

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

MAPPING_SERVERBOUND.put(MINECRAFT_1_9, 0x05);
MAPPING_SERVERBOUND.put(MINECRAFT_1_9_1, 0x05);
Expand All @@ -62,7 +63,7 @@ public class ConfirmTransaction extends AbstractPacket {
MAPPING_SERVERBOUND.put(MINECRAFT_1_15, 0x07);
MAPPING_SERVERBOUND.put(MINECRAFT_1_15_1, 0x07);
MAPPING_SERVERBOUND.put(MINECRAFT_1_15_2, 0x07);
MAPPING_SERVERBOUND.put(MINECRAFT_1_16, 0x07);
MAPPING_SERVERBOUND.put(MINECRAFT_1_16_1, 0x07);
}

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

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

private int windowId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public class BlockPlacement extends AbstractPacket {
MAPPING.put(MINECRAFT_1_15_1, 0x2C);
MAPPING.put(MINECRAFT_1_15_2, 0x2C);
MAPPING.put(MINECRAFT_1_16, 0x2D);
MAPPING.put(MINECRAFT_1_16_1, 0x2D);
}

private BlockPosition position;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public class HeldItemChange extends AbstractPacket {
MAPPING_SERVERBOUND.put(MINECRAFT_1_15_1, 0x23);
MAPPING_SERVERBOUND.put(MINECRAFT_1_15_2, 0x23);
MAPPING_SERVERBOUND.put(MINECRAFT_1_16, 0x24);
MAPPING_SERVERBOUND.put(MINECRAFT_1_16_1, 0x24);
}

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

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

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

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

0 comments on commit 3a4e301

Please sign in to comment.