diff --git a/src/main/java/makeo/gadomancy/api/golems/cores/AdditionalGolemCore.java b/src/main/java/makeo/gadomancy/api/golems/cores/AdditionalGolemCore.java index 274f430..315003d 100644 --- a/src/main/java/makeo/gadomancy/api/golems/cores/AdditionalGolemCore.java +++ b/src/main/java/makeo/gadomancy/api/golems/cores/AdditionalGolemCore.java @@ -58,6 +58,13 @@ public abstract class AdditionalGolemCore { public abstract String getUnlocalizedName(); + /** + * @return If you're able to set markers using the golemancers bell + */ + public boolean hasMarkers() { + return true; + } + /** * @return the item that is used as a core */ diff --git a/src/main/java/makeo/gadomancy/common/entities/golems/cores/BodyguardCore.java b/src/main/java/makeo/gadomancy/common/entities/golems/cores/BodyguardGolemCore.java similarity index 95% rename from src/main/java/makeo/gadomancy/common/entities/golems/cores/BodyguardCore.java rename to src/main/java/makeo/gadomancy/common/entities/golems/cores/BodyguardGolemCore.java index fbb0fd8..9cdfc61 100644 --- a/src/main/java/makeo/gadomancy/common/entities/golems/cores/BodyguardCore.java +++ b/src/main/java/makeo/gadomancy/common/entities/golems/cores/BodyguardGolemCore.java @@ -26,7 +26,9 @@ import net.minecraft.item.ItemStack; import net.minecraft.pathfinding.PathNavigate; import thaumcraft.common.entities.ai.misc.AIOpenDoor; import thaumcraft.common.entities.golems.EntityGolemBase; +import thaumcraft.common.entities.golems.Marker; +import java.util.ArrayList; import java.util.Random; /** @@ -37,12 +39,13 @@ import java.util.Random; *

* Created by makeo @ 31.10.2015 15:35 */ -public class BodyguardCore extends AdditionalGolemCore { +public class BodyguardGolemCore extends AdditionalGolemCore { @Override public void setupGolem(EntityGolemBase golem) { WrappedGolem wrapped = new WrappedGolem(golem); golem.setHomeArea(0, 300000000, 0, 300000000); + golem.setMarkers(new ArrayList()); golem.targetTasks.addTask(1, new EntityAIOwnerHurtByTarget(wrapped)); golem.targetTasks.addTask(2, new EntityAIOwnerHurtTarget(wrapped)); @@ -61,6 +64,11 @@ public class BodyguardCore extends AdditionalGolemCore { golem.tasks.addTask(8, new EntityAILookIdle(golem)); } + @Override + public boolean hasMarkers() { + return false; + } + private static class WrappedGolem extends EntityTameable { private EntityGolemBase golem; diff --git a/src/main/java/makeo/gadomancy/common/registration/RegisteredGolemStuff.java b/src/main/java/makeo/gadomancy/common/registration/RegisteredGolemStuff.java index 3dc33e0..f9cce65 100644 --- a/src/main/java/makeo/gadomancy/common/registration/RegisteredGolemStuff.java +++ b/src/main/java/makeo/gadomancy/common/registration/RegisteredGolemStuff.java @@ -4,7 +4,7 @@ import makeo.gadomancy.api.GadomancyApi; import makeo.gadomancy.api.golems.AdditionalGolemType; import makeo.gadomancy.api.golems.cores.AdditionalGolemCore; import makeo.gadomancy.common.Gadomancy; -import makeo.gadomancy.common.entities.golems.cores.BodyguardCore; +import makeo.gadomancy.common.entities.golems.cores.BodyguardGolemCore; import makeo.gadomancy.common.entities.golems.cores.BreakGolemCore; import makeo.gadomancy.common.entities.golems.types.SilverwoodGolemType; import makeo.gadomancy.common.entities.golems.upgrades.GolemUpgrade; @@ -36,7 +36,7 @@ public class RegisteredGolemStuff { typeSilverwood = registerGolemType("SILVERWOOD", new SilverwoodGolemType()); breakCore = registerGolemCore("breakCore", new BreakGolemCore()); - bodyguardCore = registerGolemCore("bodyguardCore", new BodyguardCore()); + bodyguardCore = registerGolemCore("bodyguardCore", new BodyguardGolemCore()); upgradeRunicShield = registerGolemUpgrade(new GolemUpgradeRunicShield()); }