mirror of
https://github.com/Creators-of-Create/Create.git
synced 2025-01-19 17:38:08 +01:00
Angry Conductor
- Added a train hat offset suitable for wardens
This commit is contained in:
parent
caa498875c
commit
d90682e7c3
2 changed files with 8 additions and 0 deletions
|
@ -16,6 +16,7 @@ import net.minecraft.client.model.EntityModel;
|
||||||
import net.minecraft.client.model.HierarchicalModel;
|
import net.minecraft.client.model.HierarchicalModel;
|
||||||
import net.minecraft.client.model.LavaSlimeModel;
|
import net.minecraft.client.model.LavaSlimeModel;
|
||||||
import net.minecraft.client.model.SlimeModel;
|
import net.minecraft.client.model.SlimeModel;
|
||||||
|
import net.minecraft.client.model.WardenModel;
|
||||||
import net.minecraft.client.model.WolfModel;
|
import net.minecraft.client.model.WolfModel;
|
||||||
import net.minecraft.client.model.geom.ModelPart;
|
import net.minecraft.client.model.geom.ModelPart;
|
||||||
import net.minecraft.client.model.geom.ModelPart.Cube;
|
import net.minecraft.client.model.geom.ModelPart.Cube;
|
||||||
|
@ -94,6 +95,9 @@ public class TrainHatArmorLayer<T extends LivingEntity, M extends EntityModel<T>
|
||||||
boolean slime = model instanceof SlimeModel || model instanceof LavaSlimeModel;
|
boolean slime = model instanceof SlimeModel || model instanceof LavaSlimeModel;
|
||||||
ModelPart head = model.root().children.get(slime ? "cube" : "head");
|
ModelPart head = model.root().children.get(slime ? "cube" : "head");
|
||||||
|
|
||||||
|
if (model instanceof WardenModel)
|
||||||
|
head = model.root().children.get("bone").children.get("body").children.get("head");
|
||||||
|
|
||||||
if (head != null) {
|
if (head != null) {
|
||||||
head.translateAndRotate(ms);
|
head.translateAndRotate(ms);
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,7 @@ import net.minecraft.client.model.SheepModel;
|
||||||
import net.minecraft.client.model.SlimeModel;
|
import net.minecraft.client.model.SlimeModel;
|
||||||
import net.minecraft.client.model.SnowGolemModel;
|
import net.minecraft.client.model.SnowGolemModel;
|
||||||
import net.minecraft.client.model.SpiderModel;
|
import net.minecraft.client.model.SpiderModel;
|
||||||
|
import net.minecraft.client.model.WardenModel;
|
||||||
import net.minecraft.client.model.WolfModel;
|
import net.minecraft.client.model.WolfModel;
|
||||||
import net.minecraft.world.phys.Vec3;
|
import net.minecraft.world.phys.Vec3;
|
||||||
|
|
||||||
|
@ -91,6 +92,9 @@ public class TrainHatOffsets {
|
||||||
y += 2f;
|
y += 2f;
|
||||||
} else if (model instanceof ParrotModel) {
|
} else if (model instanceof ParrotModel) {
|
||||||
z -= 1.5f;
|
z -= 1.5f;
|
||||||
|
} else if (model instanceof WardenModel) {
|
||||||
|
y += 3.5f;
|
||||||
|
z += .5f;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue