From 785b450168779e539fc148518492535b4d52d15e Mon Sep 17 00:00:00 2001 From: FlorianMichael Date: Thu, 4 Jul 2024 20:48:22 +0200 Subject: [PATCH] Fix default values to match vanilla --- .../viaversion/api/minecraft/entities/EntityTypes1_14.java | 2 +- .../viaversion/api/minecraft/entities/EntityTypes1_15.java | 2 +- .../viaversion/api/minecraft/entities/EntityTypes1_16.java | 2 +- .../viaversion/api/minecraft/entities/EntityTypes1_16_2.java | 2 +- .../viaversion/api/minecraft/entities/EntityTypes1_17.java | 2 +- .../viaversion/api/minecraft/entities/EntityTypes1_19.java | 2 +- .../viaversion/api/minecraft/entities/EntityTypes1_19_3.java | 2 +- .../viaversion/api/minecraft/entities/EntityTypes1_19_4.java | 2 +- .../viaversion/api/minecraft/entities/EntityTypes1_20_3.java | 2 +- .../viaversion/api/minecraft/entities/EntityTypes1_20_5.java | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/api/src/main/java/com/viaversion/viaversion/api/minecraft/entities/EntityTypes1_14.java b/api/src/main/java/com/viaversion/viaversion/api/minecraft/entities/EntityTypes1_14.java index e97f0d6d9..55855c063 100644 --- a/api/src/main/java/com/viaversion/viaversion/api/minecraft/entities/EntityTypes1_14.java +++ b/api/src/main/java/com/viaversion/viaversion/api/minecraft/entities/EntityTypes1_14.java @@ -245,7 +245,7 @@ public enum EntityTypes1_14 implements EntityType { } public static EntityType getTypeFromId(final int typeId) { - return EntityTypeUtil.getTypeFromId(TYPES, typeId, ENTITY); + return EntityTypeUtil.getTypeFromId(TYPES, typeId, PIG); } public static void initialize(final Protocol protocol) { diff --git a/api/src/main/java/com/viaversion/viaversion/api/minecraft/entities/EntityTypes1_15.java b/api/src/main/java/com/viaversion/viaversion/api/minecraft/entities/EntityTypes1_15.java index e717bb316..350c07e6b 100644 --- a/api/src/main/java/com/viaversion/viaversion/api/minecraft/entities/EntityTypes1_15.java +++ b/api/src/main/java/com/viaversion/viaversion/api/minecraft/entities/EntityTypes1_15.java @@ -246,7 +246,7 @@ public enum EntityTypes1_15 implements EntityType { } public static EntityType getTypeFromId(final int typeId) { - return EntityTypeUtil.getTypeFromId(TYPES, typeId, ENTITY); + return EntityTypeUtil.getTypeFromId(TYPES, typeId, PIG); } public static void initialize(final Protocol protocol) { diff --git a/api/src/main/java/com/viaversion/viaversion/api/minecraft/entities/EntityTypes1_16.java b/api/src/main/java/com/viaversion/viaversion/api/minecraft/entities/EntityTypes1_16.java index ca223acfd..ac0a55e47 100644 --- a/api/src/main/java/com/viaversion/viaversion/api/minecraft/entities/EntityTypes1_16.java +++ b/api/src/main/java/com/viaversion/viaversion/api/minecraft/entities/EntityTypes1_16.java @@ -250,7 +250,7 @@ public enum EntityTypes1_16 implements EntityType { } public static EntityType getTypeFromId(final int typeId) { - return EntityTypeUtil.getTypeFromId(TYPES, typeId, ENTITY); + return EntityTypeUtil.getTypeFromId(TYPES, typeId, PIG); } public static void initialize(final Protocol protocol) { diff --git a/api/src/main/java/com/viaversion/viaversion/api/minecraft/entities/EntityTypes1_16_2.java b/api/src/main/java/com/viaversion/viaversion/api/minecraft/entities/EntityTypes1_16_2.java index bfcff532d..5d07c3ffe 100644 --- a/api/src/main/java/com/viaversion/viaversion/api/minecraft/entities/EntityTypes1_16_2.java +++ b/api/src/main/java/com/viaversion/viaversion/api/minecraft/entities/EntityTypes1_16_2.java @@ -253,7 +253,7 @@ public enum EntityTypes1_16_2 implements EntityType { } public static EntityType getTypeFromId(final int typeId) { - return EntityTypeUtil.getTypeFromId(TYPES, typeId, ENTITY); + return EntityTypeUtil.getTypeFromId(TYPES, typeId, PIG); } public static void initialize(final Protocol protocol) { diff --git a/api/src/main/java/com/viaversion/viaversion/api/minecraft/entities/EntityTypes1_17.java b/api/src/main/java/com/viaversion/viaversion/api/minecraft/entities/EntityTypes1_17.java index 3df2caccc..48554e2c4 100644 --- a/api/src/main/java/com/viaversion/viaversion/api/minecraft/entities/EntityTypes1_17.java +++ b/api/src/main/java/com/viaversion/viaversion/api/minecraft/entities/EntityTypes1_17.java @@ -259,7 +259,7 @@ public enum EntityTypes1_17 implements EntityType { } public static EntityType getTypeFromId(final int typeId) { - return EntityTypeUtil.getTypeFromId(TYPES, typeId, ENTITY); + return EntityTypeUtil.getTypeFromId(TYPES, typeId, PIG); } public static void initialize(final Protocol protocol) { diff --git a/api/src/main/java/com/viaversion/viaversion/api/minecraft/entities/EntityTypes1_19.java b/api/src/main/java/com/viaversion/viaversion/api/minecraft/entities/EntityTypes1_19.java index d6e2a3d17..d6b3cda87 100644 --- a/api/src/main/java/com/viaversion/viaversion/api/minecraft/entities/EntityTypes1_19.java +++ b/api/src/main/java/com/viaversion/viaversion/api/minecraft/entities/EntityTypes1_19.java @@ -264,7 +264,7 @@ public enum EntityTypes1_19 implements EntityType { } public static EntityType getTypeFromId(final int typeId) { - return EntityTypeUtil.getTypeFromId(TYPES, typeId, ENTITY); + return EntityTypeUtil.getTypeFromId(TYPES, typeId, PIG); } public static void initialize(final Protocol protocol) { diff --git a/api/src/main/java/com/viaversion/viaversion/api/minecraft/entities/EntityTypes1_19_3.java b/api/src/main/java/com/viaversion/viaversion/api/minecraft/entities/EntityTypes1_19_3.java index 2acb3e3a7..52516e71a 100644 --- a/api/src/main/java/com/viaversion/viaversion/api/minecraft/entities/EntityTypes1_19_3.java +++ b/api/src/main/java/com/viaversion/viaversion/api/minecraft/entities/EntityTypes1_19_3.java @@ -265,7 +265,7 @@ public enum EntityTypes1_19_3 implements EntityType { } public static EntityType getTypeFromId(final int typeId) { - return EntityTypeUtil.getTypeFromId(TYPES, typeId, ENTITY); + return EntityTypeUtil.getTypeFromId(TYPES, typeId, PIG); } public static void initialize(final Protocol protocol) { diff --git a/api/src/main/java/com/viaversion/viaversion/api/minecraft/entities/EntityTypes1_19_4.java b/api/src/main/java/com/viaversion/viaversion/api/minecraft/entities/EntityTypes1_19_4.java index bc1faf071..eeb47f6da 100644 --- a/api/src/main/java/com/viaversion/viaversion/api/minecraft/entities/EntityTypes1_19_4.java +++ b/api/src/main/java/com/viaversion/viaversion/api/minecraft/entities/EntityTypes1_19_4.java @@ -272,7 +272,7 @@ public enum EntityTypes1_19_4 implements EntityType { } public static EntityType getTypeFromId(final int typeId) { - return EntityTypeUtil.getTypeFromId(TYPES, typeId, ENTITY); + return EntityTypeUtil.getTypeFromId(TYPES, typeId, PIG); } public static void initialize(final Protocol protocol) { diff --git a/api/src/main/java/com/viaversion/viaversion/api/minecraft/entities/EntityTypes1_20_3.java b/api/src/main/java/com/viaversion/viaversion/api/minecraft/entities/EntityTypes1_20_3.java index 8d1155864..de95885b6 100644 --- a/api/src/main/java/com/viaversion/viaversion/api/minecraft/entities/EntityTypes1_20_3.java +++ b/api/src/main/java/com/viaversion/viaversion/api/minecraft/entities/EntityTypes1_20_3.java @@ -274,7 +274,7 @@ public enum EntityTypes1_20_3 implements EntityType { } public static EntityType getTypeFromId(final int typeId) { - return EntityTypeUtil.getTypeFromId(TYPES, typeId, ENTITY); + return EntityTypeUtil.getTypeFromId(TYPES, typeId, PIG); } public static void initialize(final Protocol protocol) { diff --git a/api/src/main/java/com/viaversion/viaversion/api/minecraft/entities/EntityTypes1_20_5.java b/api/src/main/java/com/viaversion/viaversion/api/minecraft/entities/EntityTypes1_20_5.java index b2cce48e5..bf48749bb 100644 --- a/api/src/main/java/com/viaversion/viaversion/api/minecraft/entities/EntityTypes1_20_5.java +++ b/api/src/main/java/com/viaversion/viaversion/api/minecraft/entities/EntityTypes1_20_5.java @@ -280,7 +280,7 @@ public enum EntityTypes1_20_5 implements EntityType { } public static EntityType getTypeFromId(final int typeId) { - return EntityTypeUtil.getTypeFromId(TYPES, typeId, ENTITY); + return EntityTypeUtil.getTypeFromId(TYPES, typeId, null); } public static void initialize(final Protocol protocol) {