use of net.minecraft.client.renderer.block.model.ModelResourceLocation in project ImmersiveEngineering by BluSunrize.
the class ImmersiveModelRegistry method registerCustomItemModel.
public void registerCustomItemModel(ItemStack stack, ItemModelReplacement replacement) {
if (stack.getItem() instanceof ItemIEBase) {
ResourceLocation loc;
if (((ItemIEBase) stack.getItem()).getSubNames() != null && ((ItemIEBase) stack.getItem()).getSubNames().length > 0)
loc = new ResourceLocation("immersiveengineering", ((ItemIEBase) stack.getItem()).itemName + "/" + ((ItemIEBase) stack.getItem()).getSubNames()[stack.getItemDamage()]);
else
loc = new ResourceLocation("immersiveengineering", ((ItemIEBase) stack.getItem()).itemName);
itemModelReplacements.put(new ModelResourceLocation(loc, "inventory"), replacement);
}
}
use of net.minecraft.client.renderer.block.model.ModelResourceLocation in project BetterWithAddons by DaedalusGame.
the class BlockWorldScale method getVariantModels.
@Override
public List<ModelResourceLocation> getVariantModels() {
ArrayList<ModelResourceLocation> rlist = new ArrayList<ModelResourceLocation>();
rlist.add(new ModelResourceLocation(this.getRegistryName(), "cracked=false"));
return rlist;
}
use of net.minecraft.client.renderer.block.model.ModelResourceLocation in project BetterWithAddons by DaedalusGame.
the class BlockWorldScaleOre method getVariantModels.
@Override
public List<ModelResourceLocation> getVariantModels() {
ArrayList<ModelResourceLocation> rlist = new ArrayList<ModelResourceLocation>();
rlist.add(new ModelResourceLocation(this.getRegistryName(), "cracked=0"));
rlist.add(new ModelResourceLocation(this.getRegistryName(), "cracked=5"));
return rlist;
}
use of net.minecraft.client.renderer.block.model.ModelResourceLocation in project BetterWithAddons by DaedalusGame.
the class BlockBamboo method getVariantModels.
@Override
public List<ModelResourceLocation> getVariantModels() {
ArrayList<ModelResourceLocation> rlist = new ArrayList<ModelResourceLocation>();
rlist.add(new ModelResourceLocation(Reference.MOD_ID + ":bamboo", "inventory"));
return rlist;
}
use of net.minecraft.client.renderer.block.model.ModelResourceLocation in project BetterWithAddons by DaedalusGame.
the class BlockCherryBox method getVariantModels.
@Override
public List<ModelResourceLocation> getVariantModels() {
ArrayList<ModelResourceLocation> rlist = new ArrayList<ModelResourceLocation>();
rlist.add(new ModelResourceLocation(getRegistryName(), "variant=" + CherryBoxType.SOAKING.getName()));
rlist.add(new ModelResourceLocation(getRegistryName(), "variant=" + CherryBoxType.DRYING.getName()));
return rlist;
}
Aggregations