Remove unused stuff

This commit is contained in:
Sebastian Hartte
2020-06-21 22:59:47 +02:00
parent e1131bd1e2
commit 00e794f03f
12 changed files with 70 additions and 825 deletions
@@ -13,28 +13,10 @@ import appeng.core.AppEng;
public class ToolColorApplicatorRendering extends ItemRenderingCustomizer {
private static final ModelResourceLocation MODEL_COLORED = new ModelResourceLocation(
new ResourceLocation(AppEng.MOD_ID, "builtin/color_applicator_colored"), "inventory");
private static final ModelResourceLocation MODEL_UNCOLORED = new ModelResourceLocation(
new ResourceLocation(AppEng.MOD_ID, "color_applicator_uncolored"), "inventory");
@Override
@OnlyIn(Dist.CLIENT)
public void customize(IItemRendering rendering) {
// FIXME rendering.builtInModel( "models/item/builtin/color_applicator_colored",
// new ColorApplicatorModel() );
rendering.variants(MODEL_COLORED, MODEL_UNCOLORED);
rendering.color(this::getColor);
// FIXME rendering.meshDefinition( this::getMesh );
}
private ModelResourceLocation getMesh(ItemStack itemStack) {
// If the stack has no color, don't use the colored model since the impact of
// calling getColor for every quad is
// extremely high,
// if the stack tries to re-search its inventory for a new paintball everytime
AEColor col = ((ToolColorApplicator) itemStack.getItem()).getActiveColor(itemStack);
return (col != null) ? MODEL_COLORED : MODEL_UNCOLORED;
}
private int getColor(ItemStack itemStack, int idx) {