Minecraft 1.14.2 support
This commit is contained in:
parent
3ec223ec94
commit
8fda060611
@ -22,6 +22,7 @@ public class ProtocolConstants
|
|||||||
public static final int MINECRAFT_1_13_2 = 404;
|
public static final int MINECRAFT_1_13_2 = 404;
|
||||||
public static final int MINECRAFT_1_14 = 477;
|
public static final int MINECRAFT_1_14 = 477;
|
||||||
public static final int MINECRAFT_1_14_1 = 480;
|
public static final int MINECRAFT_1_14_1 = 480;
|
||||||
|
public static final int MINECRAFT_1_14_2 = 485;
|
||||||
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",
|
||||||
@ -47,7 +48,8 @@ public class ProtocolConstants
|
|||||||
ProtocolConstants.MINECRAFT_1_13_1,
|
ProtocolConstants.MINECRAFT_1_13_1,
|
||||||
ProtocolConstants.MINECRAFT_1_13_2,
|
ProtocolConstants.MINECRAFT_1_13_2,
|
||||||
ProtocolConstants.MINECRAFT_1_14,
|
ProtocolConstants.MINECRAFT_1_14,
|
||||||
ProtocolConstants.MINECRAFT_1_14_1
|
ProtocolConstants.MINECRAFT_1_14_1,
|
||||||
|
ProtocolConstants.MINECRAFT_1_14_2
|
||||||
);
|
);
|
||||||
|
|
||||||
public enum Direction
|
public enum Direction
|
||||||
|
@ -53,6 +53,7 @@ public abstract class EntityMap
|
|||||||
return EntityMap_1_13.INSTANCE;
|
return EntityMap_1_13.INSTANCE;
|
||||||
case ProtocolConstants.MINECRAFT_1_14:
|
case ProtocolConstants.MINECRAFT_1_14:
|
||||||
case ProtocolConstants.MINECRAFT_1_14_1:
|
case ProtocolConstants.MINECRAFT_1_14_1:
|
||||||
|
case ProtocolConstants.MINECRAFT_1_14_2:
|
||||||
return EntityMap_1_14.INSTANCE;
|
return EntityMap_1_14.INSTANCE;
|
||||||
}
|
}
|
||||||
throw new RuntimeException( "Version " + version + " has no entity map" );
|
throw new RuntimeException( "Version " + version + " has no entity map" );
|
||||||
|
Loading…
Reference in New Issue
Block a user