diff --git a/CustomNPC-Plus b/CustomNPC-Plus index 5acb371..b231f65 160000 --- a/CustomNPC-Plus +++ b/CustomNPC-Plus @@ -1 +1 @@ -Subproject commit 5acb371fab5142251f82e46e81deb606da797312 +Subproject commit b231f65bfbd20ee950668d245fdd3cf94619f1aa diff --git a/GeckoLib b/GeckoLib index ac7843a..20067df 160000 --- a/GeckoLib +++ b/GeckoLib @@ -1 +1 @@ -Subproject commit ac7843ab1b7ce83ac3a0ecd8e508b6b4c9540d94 +Subproject commit 20067df5a1fe8f27bf9a8ef52f1ef53f86f113b9 diff --git a/gradle.properties b/gradle.properties index 7a354b6..a5838f8 100644 --- a/gradle.properties +++ b/gradle.properties @@ -162,4 +162,4 @@ disableCheckstyle = true # e.g. add "systemProp.org.gradle.project.ideaOverrideBuildType=idea" will override the build type to be always native build. # WARNING: If you do use this option, it will overwrite whatever you have in your existing projects. This might not be what you want! # Usually there is no need to uncomment this here as other developers do not necessarily use the same build type as you. -#ideaOverrideBuildType = idea +ideaOverrideBuildType = idea diff --git a/src/main/java/com/goodbird/npcgecko/api/AbstractGeckoAPI.java b/src/main/java/com/goodbird/npcgecko/api/AbstractGeckoAPI.java index ac0ac7a..6800c4a 100644 --- a/src/main/java/com/goodbird/npcgecko/api/AbstractGeckoAPI.java +++ b/src/main/java/com/goodbird/npcgecko/api/AbstractGeckoAPI.java @@ -5,6 +5,7 @@ import net.minecraft.entity.player.EntityPlayerMP; import noppes.npcs.api.block.IBlockScripted; import noppes.npcs.api.entity.ICustomNpc; import noppes.npcs.api.entity.IPlayer; +import noppes.npcs.api.item.IItemCustomizable; import noppes.npcs.entity.EntityNPCInterface; public abstract class AbstractGeckoAPI { @@ -227,10 +228,100 @@ public abstract class AbstractGeckoAPI { */ public abstract void syncAnimForAll(IBlockScripted scriptedBlock, IGeckoAnimationBuilder builder); - // TODO: Fix ScriptCustomItem + // ======================================================================== + // Item Methods + // ======================================================================== -// public abstract void setModel(ScriptCustomItem item, String model); -// public abstract void setTexture(ScriptCustomItem item, String texture); -// public abstract void setAnimationFile(ScriptCustomItem item, String animation); -// public abstract void setIdleAnimation(ScriptCustomItem item, String animation); + /** + * Set the geo model resource location for a customizable item. + * Works with both Scripted Items and Linked Items. + * + * @param item The item (IItemCustom or IItemLinked from event.item or API) + * @param model The model path (e.g. "geckolib3:geo/mymodel.geo.json") + */ + public abstract void setItemModel(IItemCustomizable item, String model); + + /** + * Set the texture resource location for a customizable item. + * + * @param item The item + * @param texture The texture path (e.g. "geckolib3:textures/item/mytexture.png") + */ + public abstract void setItemTexture(IItemCustomizable item, String texture); + + /** + * Set the animation file resource location for a customizable item. + * + * @param item The item + * @param animation The animation file path (e.g. "geckolib3:animations/mymodel.animation.json") + */ + public abstract void setItemAnimationFile(IItemCustomizable item, String animation); + + /** + * Set the idle animation name for a customizable item. + * + * @param item The item + * @param animation The animation name from the animation file + */ + public abstract void setItemIdleAnimation(IItemCustomizable item, String animation); + + /** + * Check if a customizable item has a gecko model assigned. + * + * @param item The item to check + * @return true if the item has a custom gecko model + */ + public abstract boolean hasItemModel(IItemCustomizable item); + + /** + * Remove the gecko model from a customizable item, reverting to normal 2D rendering. + * + * @param item The item to clear the model from + */ + public abstract void clearItemModel(IItemCustomizable item); + + /** + * Set the display JSON file for a gecko item. + * The file is loaded from assets/{domain}/item_displays/ folders. + * This controls how the 3D model is positioned, rotated, and scaled + * in each render context (first person, third person, inventory, ground). + * + *
Example: {@code GeckoAPI.setDisplayJSON(item, "sword.json")}
+ * + * @param item The item to set the display JSON on + * @param displayFile The display JSON filename (e.g. "sword.json") + */ + public abstract void setDisplayJSON(IItemCustomizable item, String displayFile); + + /** + * Get a list of all loaded display file names from item_displays/ folders. + * + * @return Array of display file names + */ + public abstract String[] getDisplayFileList(); + + /** + * Set the display transform for a specific render context on a gecko item. + * This controls how the 3D model is positioned, rotated, and scaled + * when rendered in that context. + * + *If no per-context transform is set, the item's existing rotation/scale/translate + * properties are used as fallback.
+ * + * @param item The item to set the display transform on + * @param context The render context: "first_person", "third_person", "inventory", or "ground" + * @param tx Translation X + * @param ty Translation Y + * @param tz Translation Z + * @param rx Rotation X (degrees) + * @param ry Rotation Y (degrees) + * @param rz Rotation Z (degrees) + * @param sx Scale X + * @param sy Scale Y + * @param sz Scale Z + */ + public abstract void setItemDisplay(IItemCustomizable item, String context, + float tx, float ty, float tz, + float rx, float ry, float rz, + float sx, float sy, float sz); } diff --git a/src/main/java/com/goodbird/npcgecko/api/GeckoAPI.java b/src/main/java/com/goodbird/npcgecko/api/GeckoAPI.java index 7c4f756..10f6120 100644 --- a/src/main/java/com/goodbird/npcgecko/api/GeckoAPI.java +++ b/src/main/java/com/goodbird/npcgecko/api/GeckoAPI.java @@ -1,7 +1,11 @@ package com.goodbird.npcgecko.api; +import com.goodbird.npcgecko.data.CustomItemModelData; +import com.goodbird.npcgecko.data.ItemDisplayTransform; +import software.bernie.geckolib3.resource.ItemDisplayLibrary; import com.goodbird.npcgecko.wrapper.*; import com.goodbird.npcgecko.mixin.IDataDisplay; +import com.goodbird.npcgecko.mixin.IScriptCustomItem; import com.goodbird.npcgecko.network.CPacketSyncManualAnim; import com.goodbird.npcgecko.network.CPacketSyncTileManualAnim; import com.goodbird.npcgecko.network.NetworkHandler; @@ -11,8 +15,10 @@ import net.minecraft.util.ResourceLocation; import noppes.npcs.api.block.IBlockScripted; import noppes.npcs.api.entity.ICustomNpc; import noppes.npcs.api.entity.IPlayer; +import noppes.npcs.api.item.IItemCustomizable; import noppes.npcs.blocks.tiles.TileScripted; import noppes.npcs.entity.EntityNPCInterface; +import noppes.npcs.scripted.item.ScriptCustomizableItem; import software.bernie.geckolib3.core.builder.Animation; import software.bernie.geckolib3.core.builder.AnimationBuilder; import software.bernie.geckolib3.core.util.Color; @@ -215,39 +221,93 @@ public class GeckoAPI extends AbstractGeckoAPI { NetworkHandler.sendToAll(new CPacketSyncTileManualAnim(scriptedBlock.getMCTileEntity(), unwrap(builder))); } -// private CustomItemModelData getOrCreateCIMD(ScriptCustomItem item){ -// IScriptCustomItem scriptCustomItem = (IScriptCustomItem) item; -// if(!scriptCustomItem.hasCustomModel()){ -// scriptCustomItem.setCustomModelData(new CustomItemModelData()); -// } -// return scriptCustomItem.getCustomModelData(); -// } -// -// @Override -// public void setModel(ScriptCustomItem item, String model) { -// CustomItemModelData data = getOrCreateCIMD(item); -// data.setModel(model); -// item.saveItemData(); -// } -// -// @Override -// public void setTexture(ScriptCustomItem item, String texture) { -// CustomItemModelData data = getOrCreateCIMD(item); -// data.setTexture(texture); -// item.saveItemData(); -// } -// -// @Override -// public void setAnimationFile(ScriptCustomItem item, String animation) { -// CustomItemModelData data = getOrCreateCIMD(item); -// data.setAnimFile(animation); -// item.saveItemData(); -// } -// -// @Override -// public void setIdleAnimation(ScriptCustomItem item, String animation) { -// CustomItemModelData data = getOrCreateCIMD(item); -// data.setIdleAnim(animation); -// item.saveItemData(); -// } + // ======================================================================== + // Item Methods + // ======================================================================== + + private CustomItemModelData getOrCreateItemModelData(IItemCustomizable item) { + if (!(item instanceof IScriptCustomItem)) { + throw new IllegalArgumentException("Item does not support gecko models. Must be a Scripted or Linked item."); + } + IScriptCustomItem scriptItem = (IScriptCustomItem) item; + if (!scriptItem.hasCustomModel()) { + scriptItem.setCustomModelData(new CustomItemModelData()); + } + return scriptItem.getCustomModelData(); + } + + @Override + public void setItemModel(IItemCustomizable item, String model) { + CustomItemModelData data = getOrCreateItemModelData(item); + data.setModel(model); + ((ScriptCustomizableItem) item).saveItemData(); + } + + @Override + public void setItemTexture(IItemCustomizable item, String texture) { + CustomItemModelData data = getOrCreateItemModelData(item); + data.setTexture(texture); + ((ScriptCustomizableItem) item).saveItemData(); + } + + @Override + public void setItemAnimationFile(IItemCustomizable item, String animation) { + CustomItemModelData data = getOrCreateItemModelData(item); + data.setAnimFile(animation); + ((ScriptCustomizableItem) item).saveItemData(); + } + + @Override + public void setItemIdleAnimation(IItemCustomizable item, String animation) { + CustomItemModelData data = getOrCreateItemModelData(item); + data.setIdleAnim(animation); + ((ScriptCustomizableItem) item).saveItemData(); + } + + @Override + public boolean hasItemModel(IItemCustomizable item) { + if (!(item instanceof IScriptCustomItem)) { + return false; + } + return ((IScriptCustomItem) item).hasCustomModel(); + } + + @Override + public void clearItemModel(IItemCustomizable item) { + if (item instanceof IScriptCustomItem) { + ((IScriptCustomItem) item).setCustomModelData(null); + ((ScriptCustomizableItem) item).saveItemData(); + } + } + + @Override + public void setDisplayJSON(IItemCustomizable item, String displayFile) { + CustomItemModelData data = getOrCreateItemModelData(item); + data.setDisplayFile(displayFile); + ((ScriptCustomizableItem) item).saveItemData(); + } + + @Override + public String[] getDisplayFileList() { + return ItemDisplayLibrary.instance.getFileNames(); + } + + @Override + public void setItemDisplay(IItemCustomizable item, String context, + float tx, float ty, float tz, + float rx, float ry, float rz, + float sx, float sy, float sz) { + CustomItemModelData data = getOrCreateItemModelData(item); + ItemDisplayTransform transform = new ItemDisplayTransform(tx, ty, tz, rx, ry, rz, sx, sy, sz); + switch (context.toLowerCase()) { + case "first_person": data.setFirstPerson(transform); break; + case "third_person": data.setThirdPerson(transform); break; + case "inventory": data.setInventory(transform); break; + case "ground": data.setGround(transform); break; + default: + throw new IllegalArgumentException("Unknown display context: " + context + + ". Use: first_person, third_person, inventory, ground"); + } + ((ScriptCustomizableItem) item).saveItemData(); + } } diff --git a/src/main/java/com/goodbird/npcgecko/client/ItemDisplayLoader.java b/src/main/java/com/goodbird/npcgecko/client/ItemDisplayLoader.java new file mode 100644 index 0000000..a4cea8e --- /dev/null +++ b/src/main/java/com/goodbird/npcgecko/client/ItemDisplayLoader.java @@ -0,0 +1,116 @@ +package com.goodbird.npcgecko.client; + +import com.goodbird.npcgecko.data.ItemDisplayData; +import com.goodbird.npcgecko.data.ItemDisplayTransform; +import net.minecraft.util.ResourceLocation; +import software.bernie.geckolib3.file.ItemDisplayFile; +import software.bernie.geckolib3.resource.GeckoLibCache; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * Reads item display data from GeckoLibCache (which handles loading from + * resource packs and server-to-client syncing). + * + *Display JSONs are looked up by filename (e.g. "sword.json"), which is + * explicitly assigned to items via {@code GeckoAPI.setDisplayJSON(item, "sword.json")}.
+ */ +public class ItemDisplayLoader { + private static final ItemDisplayLoader INSTANCE = new ItemDisplayLoader(); + + public static ItemDisplayLoader getInstance() { + return INSTANCE; + } + + /** + * Look up display data by filename (e.g. "sword.json"). + * Searches all loaded item display files in GeckoLibCache for a matching filename. + */ + public ItemDisplayData getDisplayData(String filename) { + if (filename == null || filename.isEmpty()) return null; + + HashMap+ * JSON format: + *
+ * {
+ * "model": "npcgecko:geo/sword.geo.json",
+ * "display": {
+ * "first_person": { "translation": [x,y,z], "rotation": [x,y,z], "scale": [x,y,z] },
+ * "third_person": { "translation": [x,y,z], "rotation": [x,y,z], "scale": [x,y,z] },
+ * "inventory": { "translation": [x,y,z], "rotation": [x,y,z], "scale": [x,y,z] },
+ * "ground": { "translation": [x,y,z], "rotation": [x,y,z], "scale": [x,y,z] }
+ * }
+ * }
+ *
+ */
+public class ItemDisplayData {
+ private ItemDisplayTransform firstPerson;
+ private ItemDisplayTransform thirdPerson;
+ private ItemDisplayTransform inventory;
+ private ItemDisplayTransform ground;
+
+ public ItemDisplayTransform getFirstPerson() { return firstPerson; }
+ public void setFirstPerson(ItemDisplayTransform t) { this.firstPerson = t; }
+
+ public ItemDisplayTransform getThirdPerson() { return thirdPerson; }
+ public void setThirdPerson(ItemDisplayTransform t) { this.thirdPerson = t; }
+
+ public ItemDisplayTransform getInventory() { return inventory; }
+ public void setInventory(ItemDisplayTransform t) { this.inventory = t; }
+
+ public ItemDisplayTransform getGround() { return ground; }
+ public void setGround(ItemDisplayTransform t) { this.ground = t; }
+}
diff --git a/src/main/java/com/goodbird/npcgecko/data/ItemDisplayTransform.java b/src/main/java/com/goodbird/npcgecko/data/ItemDisplayTransform.java
new file mode 100644
index 0000000..b049a53
--- /dev/null
+++ b/src/main/java/com/goodbird/npcgecko/data/ItemDisplayTransform.java
@@ -0,0 +1,85 @@
+package com.goodbird.npcgecko.data;
+
+import net.minecraft.nbt.NBTTagCompound;
+
+/**
+ * Per-context display transform for gecko item models.
+ * Stores translation, rotation, and scale for a single render context
+ * (first_person, third_person, inventory, ground).
+ */
+public class ItemDisplayTransform {
+ private float translateX, translateY, translateZ;
+ private float rotationX, rotationY, rotationZ;
+ private float scaleX = 1.0F, scaleY = 1.0F, scaleZ = 1.0F;
+ private boolean hasTranslation;
+ private boolean hasRotation;
+ private boolean hasScale;
+
+ public ItemDisplayTransform() {
+ }
+
+ public ItemDisplayTransform(float tx, float ty, float tz,
+ float rx, float ry, float rz,
+ float sx, float sy, float sz) {
+ this.translateX = tx; this.translateY = ty; this.translateZ = tz;
+ this.rotationX = rx; this.rotationY = ry; this.rotationZ = rz;
+ this.scaleX = sx; this.scaleY = sy; this.scaleZ = sz;
+ this.hasTranslation = true;
+ this.hasRotation = true;
+ this.hasScale = true;
+ }
+
+ public NBTTagCompound writeToNBT(NBTTagCompound tag) {
+ tag.setFloat("TX", translateX);
+ tag.setFloat("TY", translateY);
+ tag.setFloat("TZ", translateZ);
+ tag.setFloat("RX", rotationX);
+ tag.setFloat("RY", rotationY);
+ tag.setFloat("RZ", rotationZ);
+ tag.setFloat("SX", scaleX);
+ tag.setFloat("SY", scaleY);
+ tag.setFloat("SZ", scaleZ);
+ return tag;
+ }
+
+ public void readFromNBT(NBTTagCompound tag) {
+ translateX = tag.getFloat("TX");
+ translateY = tag.getFloat("TY");
+ translateZ = tag.getFloat("TZ");
+ rotationX = tag.getFloat("RX");
+ rotationY = tag.getFloat("RY");
+ rotationZ = tag.getFloat("RZ");
+ scaleX = tag.getFloat("SX");
+ scaleY = tag.getFloat("SY");
+ scaleZ = tag.getFloat("SZ");
+ }
+
+ public float getTranslateX() { return translateX; }
+ public float getTranslateY() { return translateY; }
+ public float getTranslateZ() { return translateZ; }
+ public float getRotationX() { return rotationX; }
+ public float getRotationY() { return rotationY; }
+ public float getRotationZ() { return rotationZ; }
+ public float getScaleX() { return scaleX; }
+ public float getScaleY() { return scaleY; }
+ public float getScaleZ() { return scaleZ; }
+
+ public void setTranslation(float x, float y, float z) {
+ this.translateX = x; this.translateY = y; this.translateZ = z;
+ this.hasTranslation = true;
+ }
+
+ public void setRotation(float x, float y, float z) {
+ this.rotationX = x; this.rotationY = y; this.rotationZ = z;
+ this.hasRotation = true;
+ }
+
+ public void setScale(float x, float y, float z) {
+ this.scaleX = x; this.scaleY = y; this.scaleZ = z;
+ this.hasScale = true;
+ }
+
+ public boolean hasTranslation() { return hasTranslation; }
+ public boolean hasRotation() { return hasRotation; }
+ public boolean hasScale() { return hasScale; }
+}
diff --git a/src/main/java/com/goodbird/npcgecko/item/ItemCustomModelPredicate.java b/src/main/java/com/goodbird/npcgecko/item/ItemCustomModelPredicate.java
index 2ec6e73..204e4a9 100644
--- a/src/main/java/com/goodbird/npcgecko/item/ItemCustomModelPredicate.java
+++ b/src/main/java/com/goodbird/npcgecko/item/ItemCustomModelPredicate.java
@@ -1,11 +1,12 @@
package com.goodbird.npcgecko.item;
+import com.goodbird.npcgecko.data.CustomItemModelData;
import com.goodbird.npcgecko.mixin.IScriptCustomItem;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
+import noppes.npcs.api.item.IItemCustomizable;
import noppes.npcs.api.item.IItemStack;
import noppes.npcs.scripted.NpcAPI;
-import noppes.npcs.scripted.item.ScriptCustomItem;
import software.bernie.geckolib3.core.IAnimatable;
import software.bernie.geckolib3.core.PlayState;
import software.bernie.geckolib3.core.builder.AnimationBuilder;
@@ -15,9 +16,14 @@ public class ItemCustomModelPredicate {
public static PlayState predicate(AnimationEvent
event) {
ItemStack stack = (ItemStack) event.getExtraData().get(0);
IItemStack istack = NpcAPI.Instance().getIItemStack(stack);
- if (!(istack instanceof ScriptCustomItem)) return PlayState.STOP;
+ if (!(istack instanceof IItemCustomizable)) return PlayState.STOP;
+ if (!(istack instanceof IScriptCustomItem)) return PlayState.STOP;
IScriptCustomItem item = (IScriptCustomItem) istack;
- event.getController().setAnimation(new AnimationBuilder().loop(item.getCustomModelData().getIdleAnim()));
+ CustomItemModelData data = item.getCustomModelData();
+ if (data == null) return PlayState.STOP;
+ String idleAnim = data.getIdleAnim();
+ if (idleAnim == null || idleAnim.isEmpty()) return PlayState.STOP;
+ event.getController().setAnimation(new AnimationBuilder().loop(idleAnim));
return PlayState.CONTINUE;
}
}
diff --git a/src/main/java/com/goodbird/npcgecko/mixin/impl/MixinCustomItemRenderer.java b/src/main/java/com/goodbird/npcgecko/mixin/impl/MixinCustomItemRenderer.java
index b151d6b..68f0a92 100644
--- a/src/main/java/com/goodbird/npcgecko/mixin/impl/MixinCustomItemRenderer.java
+++ b/src/main/java/com/goodbird/npcgecko/mixin/impl/MixinCustomItemRenderer.java
@@ -1,54 +1,43 @@
-// TODO: Fix ScriptCustomItem
+package com.goodbird.npcgecko.mixin.impl;
-//package com.goodbird.npcgecko.mixin.impl;
-//
-//import com.goodbird.npcgecko.client.model.ItemModelCustom;
-//import com.goodbird.npcgecko.mixin.IScriptCustomItem;
-//import net.minecraft.entity.EntityLivingBase;
-//import net.minecraft.entity.item.EntityItem;
-//import net.minecraft.item.ItemStack;
-//import noppes.npcs.client.renderer.items.CustomItemRenderer;
-//import noppes.npcs.scripted.item.ScriptCustomItem;
-//import org.lwjgl.opengl.GL11;
-//import org.spongepowered.asm.mixin.Mixin;
-//import org.spongepowered.asm.mixin.Unique;
-//import org.spongepowered.asm.mixin.injection.At;
-//import org.spongepowered.asm.mixin.injection.Inject;
-//import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
-//import software.bernie.geckolib3.item.AnimatableStackWrapper;
-//import software.bernie.geckolib3.renderers.geo.GeoItemStackRenderer;
-//
-//@Mixin(CustomItemRenderer.class)
-//public class MixinCustomItemRenderer {
-// @Unique
-// private static GeoItemStackRenderer renderer = new GeoItemStackRenderer(new ItemModelCustom());
-//
-// @Inject(method = "renderEntityCustomItem", cancellable = true, at=@At("HEAD"), remap = false)
-// public void renderEntityCustomItem(ScriptCustomItem scriptCustomItem, ItemStack itemStack, EntityItem entityItem, CallbackInfo ci) {
-// if(((IScriptCustomItem)scriptCustomItem).hasCustomModel()){
-// renderer.render(AnimatableStackWrapper.wrapItemStack(itemStack), itemStack);
-// ci.cancel();
-// }
-// }
-//
-// @Inject(method = "renderInventoryCustomItem", cancellable = true, at=@At("HEAD"), remap = false)
-// public void renderInventoryCustomItem(ScriptCustomItem scriptCustomItem, CallbackInfo ci){
-// if(((IScriptCustomItem)scriptCustomItem).hasCustomModel()){
-// GL11.glPushMatrix();
-// GL11.glTranslated(-1.0, -1.0, 0.0);
-// GL11.glRotatef(90.0F, 0.0F, 1.0F, 0.0F);
-// renderer.render(AnimatableStackWrapper.wrapItemStack(scriptCustomItem.item), scriptCustomItem.item);
-// GL11.glPopMatrix();
-// ci.cancel();
-// }
-// }
-//
-// @Inject(method = "renderItem3d", cancellable = true, at=@At("HEAD"), remap = false)
-// public void renderItem3d(ScriptCustomItem scriptCustomItem, EntityLivingBase entityLivingBase, ItemStack itemStack, CallbackInfo ci) {
-// if(((IScriptCustomItem)scriptCustomItem).hasCustomModel()){
-// renderer.render(AnimatableStackWrapper.wrapItemStack(itemStack), itemStack);
-// ci.cancel();
-// }
-// }
-//
-//}
+import com.goodbird.npcgecko.client.ModelItemRenderUtil;
+import net.minecraft.item.ItemStack;
+import net.minecraftforge.client.IItemRenderer.ItemRenderType;
+import net.minecraftforge.client.IItemRenderer.ItemRendererHelper;
+import noppes.npcs.client.renderer.items.ItemCustomRenderer;
+import org.spongepowered.asm.mixin.Mixin;
+import org.spongepowered.asm.mixin.injection.At;
+import org.spongepowered.asm.mixin.injection.Inject;
+import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
+import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
+
+@Mixin(ItemCustomRenderer.class)
+public class MixinCustomItemRenderer {
+
+ @Inject(
+ method = "shouldUseRenderHelper",
+ cancellable = true,
+ at = @At("HEAD"),
+ remap = false
+ )
+ public void shouldUseRenderHelper(ItemRenderType type, ItemStack item, ItemRendererHelper helper, CallbackInfoReturnable