use of net.minecraft.client.renderer.model.ModelResourceLocation in project Overloaded by CJ-MC-Mods.
the class ItemFluidCore method registerModel.
@OnlyIn(Dist.CLIENT)
@Override
public void registerModel() {
ModelResourceLocation location = new ModelResourceLocation(getRegistryName(), null);
// ModelLoader.setCustomModelResourceLocation(this, 0, location);
ImageUtil.registerDynamicTexture(new ResourceLocation(MODID, "textures/item/fluid_core.png"), OverloadedConfig.INSTANCE.textureResolutions.itemResolution);
}
use of net.minecraft.client.renderer.model.ModelResourceLocation in project Overloaded by CJ-MC-Mods.
the class ItemMultiTool method registerModel.
@OnlyIn(Dist.CLIENT)
@Override
public void registerModel() {
ModelResourceLocation location = new ModelResourceLocation(new ResourceLocation(MODID, "multi_tool"), null);
// ModelLoader.setCustomModelResourceLocation(this, 0, location);
ImageUtil.registerDynamicTexture(new ResourceLocation(MODID, "textures/item/multi_tool.png"), OverloadedConfig.INSTANCE.textureResolutions.itemResolution);
}
use of net.minecraft.client.renderer.model.ModelResourceLocation in project Overloaded by CJ-MC-Mods.
the class RenderMultiToolAssist method renderRemovePreview.
private static void renderRemovePreview(RenderWorldLastEvent event, BlockRayTraceResult result) {
IBakedModel bakeModel = Minecraft.getInstance().getModelManager().getModel(new ModelResourceLocation(MODID + ":remove_preview", ""));
BlockPos toRenderAt = result.getBlockPos();
renderBlockModel(event, toRenderAt, bakeModel, Blocks.COBBLESTONE.defaultBlockState());
}
use of net.minecraft.client.renderer.model.ModelResourceLocation in project Overloaded by CJ-MC-Mods.
the class BlockInfiniteWaterSource method registerModel.
@OnlyIn(Dist.CLIENT)
@Override
public void registerModel() {
ModelResourceLocation location = new ModelResourceLocation(new ResourceLocation(MODID, "infinite_water_source"), null);
// ModelLoader.setCustomModelResourceLocation(Item.getItemFromBlock(this), 0, location);
ImageUtil.registerDynamicTexture(new ResourceLocation(MODID, "textures/block/infinite_water_source.png"), OverloadedConfig.INSTANCE.textureResolutions.blockResolution);
}
use of net.minecraft.client.renderer.model.ModelResourceLocation in project Overloaded by CJ-MC-Mods.
the class ItemEnergyCore method registerModel.
@Override
@OnlyIn(Dist.CLIENT)
public void registerModel() {
ModelResourceLocation location = new ModelResourceLocation(getRegistryName(), null);
// ModelLoader.setCustomModelResourceLocation(this, 0, location);
ImageUtil.registerDynamicTexture(new ResourceLocation(MODID, "textures/item/energy_core.png"), OverloadedConfig.INSTANCE.textureResolutions.itemResolution);
}
Aggregations