From 4029c79abc4ba99dbd75e95a404f5737d0d689b3 Mon Sep 17 00:00:00 2001 From: "Joseph T. McQuigg" Date: Sun, 24 Nov 2024 15:14:06 -0500 Subject: [PATCH] Make Model Classes Protected and remove a redundant method super call --- CHANGELOG.md | 2 +- .../byg/common/entity/manowar/ManOWarModel.java | 2 +- .../common/entity/pumpkinwarden/PumpkinWardenModel.java | 8 +------- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d1af4e3a6..81ec77f30 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -# For 1.20.1 and above Check out Oh The Biomes We've Gone: +# For 1.20.1 and above Check out the Sequel, Oh The Biomes We've Gone: * CurseForge: https://www.curseforge.com/minecraft/mc-mods/oh-the-biomes-weve-gone * Modrinth: https://modrinth.com/mod/oh-the-biomes-weve-gone diff --git a/Common/src/main/java/potionstudios/byg/common/entity/manowar/ManOWarModel.java b/Common/src/main/java/potionstudios/byg/common/entity/manowar/ManOWarModel.java index f3aea1257..b238b2458 100644 --- a/Common/src/main/java/potionstudios/byg/common/entity/manowar/ManOWarModel.java +++ b/Common/src/main/java/potionstudios/byg/common/entity/manowar/ManOWarModel.java @@ -6,7 +6,7 @@ import software.bernie.geckolib.core.animatable.GeoAnimatable; import software.bernie.geckolib.model.GeoModel; -public class ManOWarModel extends GeoModel { +class ManOWarModel extends GeoModel { @Override public ResourceLocation getModelResource(T object) { diff --git a/Common/src/main/java/potionstudios/byg/common/entity/pumpkinwarden/PumpkinWardenModel.java b/Common/src/main/java/potionstudios/byg/common/entity/pumpkinwarden/PumpkinWardenModel.java index a281f6ed0..fad9bce24 100644 --- a/Common/src/main/java/potionstudios/byg/common/entity/pumpkinwarden/PumpkinWardenModel.java +++ b/Common/src/main/java/potionstudios/byg/common/entity/pumpkinwarden/PumpkinWardenModel.java @@ -6,12 +6,11 @@ import software.bernie.geckolib.constant.DataTickets; import software.bernie.geckolib.core.animatable.GeoAnimatable; import software.bernie.geckolib.core.animatable.model.CoreGeoBone; -import software.bernie.geckolib.core.animation.Animation; import software.bernie.geckolib.core.animation.AnimationState; import software.bernie.geckolib.model.GeoModel; import software.bernie.geckolib.model.data.EntityModelData; -public class PumpkinWardenModel extends GeoModel { +class PumpkinWardenModel extends GeoModel { @Override public ResourceLocation getModelResource(T object) { @@ -28,11 +27,6 @@ public ResourceLocation getAnimationResource(T animatable) { return BYG.createLocation("animations/pumpkinwarden.animation.json"); } - @Override - public Animation getAnimation(T animatable, String name) { - return super.getAnimation(animatable, name); - } - @Override public void setCustomAnimations(T entity, long uniqueID, AnimationState customPredicate) { super.setCustomAnimations(entity, uniqueID, customPredicate);