Commit 79077bf9 by Jonathan Thomas

Refactor controls classes into new package, and add custom speed settings for…

Refactor controls classes into new package, and add custom speed settings for Illagers and WanderingTraders
parent 6f013da4
Pipeline #11972 passed with stage
in 22 seconds
......@@ -3,6 +3,7 @@ package com.owlmaddie.chat;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import com.owlmaddie.ModInit;
import com.owlmaddie.controls.SpeedControls;
import com.owlmaddie.goals.*;
import com.owlmaddie.items.RarityItemCollector;
import com.owlmaddie.json.QuestJson;
......
package com.owlmaddie.goals;
package com.owlmaddie.controls;
import net.minecraft.entity.mob.MobEntity;
import net.minecraft.entity.mob.SlimeEntity;
......
package com.owlmaddie.goals;
package com.owlmaddie.controls;
import net.minecraft.entity.mob.MobEntity;
import net.minecraft.entity.mob.VindicatorEntity;
import net.minecraft.entity.mob.WitchEntity;
import net.minecraft.entity.mob.*;
import net.minecraft.entity.passive.*;
/**
......@@ -18,6 +16,12 @@ public class SpeedControls {
speed = 0.5F;
} else if (entity instanceof VillagerEntity) {
speed = 0.5F;
} else if (entity instanceof IllagerEntity) {
speed = 0.75F;
} else if (entity instanceof WitchEntity) {
speed = 0.75F;
} else if (entity instanceof WanderingTraderEntity) {
speed = 0.75F;
} else if (entity instanceof AllayEntity) {
speed = 1.5F;
} else if (entity instanceof CamelEntity) {
......@@ -28,10 +32,6 @@ public class SpeedControls {
speed = 2F;
} else if (entity instanceof PandaEntity) {
speed = 2F;
} else if (entity instanceof VindicatorEntity) {
speed = 0.75F;
} else if (entity instanceof WitchEntity) {
speed = 0.75F;
} else if (entity instanceof RabbitEntity) {
speed = 1.5F;
}
......
package com.owlmaddie.goals;
import com.owlmaddie.controls.LookControls;
import net.minecraft.entity.ai.goal.Goal;
import net.minecraft.entity.ai.pathing.EntityNavigation;
import net.minecraft.entity.mob.MobEntity;
......
package com.owlmaddie.goals;
import com.owlmaddie.controls.LookControls;
import net.minecraft.entity.ai.goal.Goal;
import net.minecraft.entity.ai.pathing.EntityNavigation;
import net.minecraft.entity.mob.MobEntity;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment