From 278f59103e8977b97078623103b39c853a6a1eef Mon Sep 17 00:00:00 2001 From: Camotoy <20743703+DoctorMacc@users.noreply.github.com> Date: Wed, 13 May 2020 17:08:32 -0400 Subject: [PATCH] Replace illusioners with pillagers (#550) Illusioners do not exist in Bedrock edition; this commit replaces them with pillagers so they can be somewhat replicated. --- .../org/geysermc/connector/entity/type/EntityType.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/connector/src/main/java/org/geysermc/connector/entity/type/EntityType.java b/connector/src/main/java/org/geysermc/connector/entity/type/EntityType.java index 5ab4eb1a..c77baf0e 100644 --- a/connector/src/main/java/org/geysermc/connector/entity/type/EntityType.java +++ b/connector/src/main/java/org/geysermc/connector/entity/type/EntityType.java @@ -152,7 +152,12 @@ public enum EntityType { /** * Item frames are handled differently since they are a block in Bedrock. */ - ITEM_FRAME(ItemFrameEntity.class, 0, 0, 0); + ITEM_FRAME(ItemFrameEntity.class, 0, 0, 0), + + /** + * Not an entity in Bedrock, so we replace it with a Pillager + */ + ILLUSIONER(AbstractIllagerEntity.class, 114, 1.8f, 0.6f, 0.6f, 1.62f, "minecraft:pillager"); private Class entityClass; private final int type;