From fc7931f0ef557dd191851d6f8b90d5aea6c5702e Mon Sep 17 00:00:00 2001 From: heyhey123-git <156066831+heyhey123-git@users.noreply.github.com> Date: Fri, 4 Oct 2024 23:38:27 +0900 Subject: [PATCH] feat: add EntityUndeadComponent --- .../main/java/org/allaymc/api/entity/data/EntityId.java | 2 +- .../api/entity/interfaces/EntityZombifiedPiglin.java | 8 ++++++++ .../java/org/allaymc/api/entity/type/EntityTypes.java | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 api/src/main/java/org/allaymc/api/entity/interfaces/EntityZombifiedPiglin.java diff --git a/api/src/main/java/org/allaymc/api/entity/data/EntityId.java b/api/src/main/java/org/allaymc/api/entity/data/EntityId.java index 4ddcfed69..05514d22c 100644 --- a/api/src/main/java/org/allaymc/api/entity/data/EntityId.java +++ b/api/src/main/java/org/allaymc/api/entity/data/EntityId.java @@ -257,7 +257,7 @@ public enum EntityId { ZOMBIE_HORSE("minecraft:zombie_horse", 27), - ZOMBIE_PIGMAN("minecraft:zombie_pigman", 36), + ZOMBIFIED_PIGLIN("minecraft:zombie_pigman", 36), ZOMBIE_VILLAGER("minecraft:zombie_villager", 44), diff --git a/api/src/main/java/org/allaymc/api/entity/interfaces/EntityZombifiedPiglin.java b/api/src/main/java/org/allaymc/api/entity/interfaces/EntityZombifiedPiglin.java new file mode 100644 index 000000000..a360a7300 --- /dev/null +++ b/api/src/main/java/org/allaymc/api/entity/interfaces/EntityZombifiedPiglin.java @@ -0,0 +1,8 @@ +package org.allaymc.api.entity.interfaces; + +import org.allaymc.api.entity.Entity; +import org.allaymc.api.entity.component.EntityUndeadComponent; + +public interface EntityZombifiedPiglin extends Entity, EntityUndeadComponent { + +} diff --git a/api/src/main/java/org/allaymc/api/entity/type/EntityTypes.java b/api/src/main/java/org/allaymc/api/entity/type/EntityTypes.java index eb977eb13..01099ad2b 100644 --- a/api/src/main/java/org/allaymc/api/entity/type/EntityTypes.java +++ b/api/src/main/java/org/allaymc/api/entity/type/EntityTypes.java @@ -253,7 +253,7 @@ public final class EntityTypes { public static EntityType ZOMBIE_HORSE; - public static EntityType ZOMBIE_PIGMAN; + public static EntityType ZOMBIFIED_PIGLIN; public static EntityType ZOMBIE_VILLAGER;