Add support for Minecraft 1.11.1

This commit is contained in:
md_5 2016-12-21 06:18:56 +11:00
parent 129693f533
commit 21411af74d
3 changed files with 6 additions and 2 deletions

View File

@ -263,7 +263,8 @@ public enum Protocol
ProtocolConstants.MINECRAFT_1_9_2, ProtocolConstants.MINECRAFT_1_9_2,
ProtocolConstants.MINECRAFT_1_9_4, ProtocolConstants.MINECRAFT_1_9_4,
ProtocolConstants.MINECRAFT_1_10, ProtocolConstants.MINECRAFT_1_10,
ProtocolConstants.MINECRAFT_1_11 ProtocolConstants.MINECRAFT_1_11,
ProtocolConstants.MINECRAFT_1_11_1
) ); ) );
} }

View File

@ -13,6 +13,7 @@ public class ProtocolConstants
public static final int MINECRAFT_1_9_4 = 110; public static final int MINECRAFT_1_9_4 = 110;
public static final int MINECRAFT_1_10 = 210; public static final int MINECRAFT_1_10 = 210;
public static final int MINECRAFT_1_11 = 315; public static final int MINECRAFT_1_11 = 315;
public static final int MINECRAFT_1_11_1 = 316;
public static final List<String> SUPPORTED_VERSIONS = Arrays.asList( public static final List<String> SUPPORTED_VERSIONS = Arrays.asList(
"1.8.x", "1.8.x",
"1.9.x", "1.9.x",
@ -25,7 +26,8 @@ public class ProtocolConstants
ProtocolConstants.MINECRAFT_1_9_2, ProtocolConstants.MINECRAFT_1_9_2,
ProtocolConstants.MINECRAFT_1_9_4, ProtocolConstants.MINECRAFT_1_9_4,
ProtocolConstants.MINECRAFT_1_10, ProtocolConstants.MINECRAFT_1_10,
ProtocolConstants.MINECRAFT_1_11 ProtocolConstants.MINECRAFT_1_11,
ProtocolConstants.MINECRAFT_1_11_1
); );
public enum Direction public enum Direction

View File

@ -36,6 +36,7 @@ public abstract class EntityMap
case ProtocolConstants.MINECRAFT_1_10: case ProtocolConstants.MINECRAFT_1_10:
return EntityMap_1_10.INSTANCE; return EntityMap_1_10.INSTANCE;
case ProtocolConstants.MINECRAFT_1_11: case ProtocolConstants.MINECRAFT_1_11:
case ProtocolConstants.MINECRAFT_1_11_1:
return EntityMap_1_11.INSTANCE; return EntityMap_1_11.INSTANCE;
} }
throw new RuntimeException( "Version " + version + " has no entity map" ); throw new RuntimeException( "Version " + version + " has no entity map" );