Skip to content

Commit

Permalink
feat: remove name tag for legacy flesh blob texture (legacy flesh blo…
Browse files Browse the repository at this point in the history
…b is now a cradle easter egg)
  • Loading branch information
Elenterius committed Sep 8, 2023
1 parent 8f3b886 commit 0750904
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ public class FleshBlobModel<T extends EaterFleshBlob> extends AnimatedGeoModel<T

protected static final ResourceLocation BASE_TEXTURE = BiomancyMod.createRL("textures/entity/flesh_blob/flesh_blob_neutral.png");
protected static final ResourceLocation HUNGRY_TEXTURE = BiomancyMod.createRL("textures/entity/flesh_blob/flesh_blob_hostile.png");
protected static final ResourceLocation LEGACY_TEXTURE = BiomancyMod.createRL("textures/entity/flesh_blob/flesh_blob_legacy.png");
protected static final ResourceLocation CLOWN_TEXTURE = BiomancyMod.createRL("textures/entity/flesh_blob/flesh_blob_clown.png");
protected static final ResourceLocation TROLL_TEXTURE = BiomancyMod.createRL("textures/entity/flesh_blob/flesh_blob_troll.png");
protected static final ResourceLocation WATCHER_TEXTURE = BiomancyMod.createRL("textures/entity/flesh_blob/flesh_blob_watcher.png");
Expand All @@ -29,7 +28,6 @@ public ResourceLocation getModelResource(T fleshBlob) {
public ResourceLocation getTextureResource(T fleshBlob) {
if (fleshBlob.hasCustomName()) {
String name = fleshBlob.getName().getString().toLowerCase(Locale.ENGLISH);
if (name.contains("happy")) return LEGACY_TEXTURE;
if (name.equals("trololo") || name.equals("u mad bro?")) return TROLL_TEXTURE;
if (name.contains("krusty")) return CLOWN_TEXTURE;
if (name.contains("beholder") || name.contains("observer")) return WATCHER_TEXTURE;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
package com.github.elenterius.biomancy.client.render.entity.fleshblob;

import com.github.elenterius.biomancy.BiomancyMod;
import com.github.elenterius.biomancy.entity.fleshblob.EaterFleshBlob;
import net.minecraft.resources.ResourceLocation;
import software.bernie.geckolib3.model.AnimatedGeoModel;

public class LegacyFleshBlobModel<T extends EaterFleshBlob> extends AnimatedGeoModel<T> {

protected static final ResourceLocation TEXTURE = BiomancyMod.createRL("textures/entity/flesh_blob/flesh_blob_legacy.png");

@Override
public ResourceLocation getModelResource(T fleshBlob) {
return FleshBlobModel.MODEL;
}

@Override
public ResourceLocation getTextureResource(T fleshBlob) {
return FleshBlobModel.LEGACY_TEXTURE;
return TEXTURE;
}

@Override
Expand Down

0 comments on commit 0750904

Please sign in to comment.