aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorMadeleaan <70163122+Madeleaan@users.noreply.github.com>2023-10-06 07:08:32 +0200
committerGitHub <noreply@github.com>2023-10-06 16:08:32 +1100
commit778e868ae93651b7280289af14a812eec7f2ecb1 (patch)
tree77839b4296021367bc287c053264ba80ce124095 /src/main/java
parent577079c61af5d6c94fe5db5bbe959887de245042 (diff)
downloadNotEnoughUpdates-778e868ae93651b7280289af14a812eec7f2ecb1.tar.gz
NotEnoughUpdates-778e868ae93651b7280289af14a812eec7f2ecb1.tar.bz2
NotEnoughUpdates-778e868ae93651b7280289af14a812eec7f2ecb1.zip
Implemented Giant to EntityRenderer (#863)
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/entityviewer/EntityViewer.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/entityviewer/EntityViewer.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/entityviewer/EntityViewer.java
index 1e7dc319..24d4a81a 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/entityviewer/EntityViewer.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/entityviewer/EntityViewer.java
@@ -40,6 +40,7 @@ import net.minecraft.entity.monster.EntityCreeper;
import net.minecraft.entity.monster.EntityEnderman;
import net.minecraft.entity.monster.EntityEndermite;
import net.minecraft.entity.monster.EntityGhast;
+import net.minecraft.entity.monster.EntityGiantZombie;
import net.minecraft.entity.monster.EntityGuardian;
import net.minecraft.entity.monster.EntityIronGolem;
import net.minecraft.entity.monster.EntityMagmaCube;
@@ -121,6 +122,7 @@ public class EntityViewer extends GuiScreen {
put("Dragon", () -> new EntityDragon(null));
put("Player", () -> new GUIClientPlayer());
put("Pig", () -> new EntityPig(null));
+ put("Giant", () -> new EntityGiantZombie(null));
}};
public static Map<String, EntityViewerModifier> validModifiers = new HashMap<String, EntityViewerModifier>() {{
@@ -239,6 +241,9 @@ public class EntityViewer extends GuiScreen {
} else if (stack instanceof EntityGhast) {
scale = 8;
bottomOffset = 4F;
+ } else if (stack instanceof EntityGiantZombie) {
+ scale = 8;
+ bottomOffset = -2F;
}
stack.ticksExisted = Minecraft.getMinecraft().thePlayer.ticksExisted;
drawEntityOnScreen(