use of net.minecraft.client.renderer.model.ModelResourceLocation in project Overloaded by CJ-MC-Mods.
the class ItemLinkingCard method registerModel.
@OnlyIn(Dist.CLIENT)
@Override
public void registerModel() {
ModelResourceLocation location = new ModelResourceLocation(new ResourceLocation(MODID, "linking_card"), null);
// ModelLoader.setCustomModelResourceLocation(this, 0, location);
ImageUtil.registerDynamicTexture(new ResourceLocation(MODID, "textures/item/linking_card.png"), OverloadedConfig.INSTANCE.textureResolutions.itemResolution);
}
use of net.minecraft.client.renderer.model.ModelResourceLocation in project Overloaded by CJ-MC-Mods.
the class ItemRayGun method registerModel.
@OnlyIn(Dist.CLIENT)
@Override
public void registerModel() {
ModelResourceLocation location = new ModelResourceLocation(new ResourceLocation(MODID, "ray_gun"), null);
// ModelLoader.setCustomModelResourceLocation(this, 0, location);
ImageUtil.registerDynamicTexture(new ResourceLocation(MODID, "textures/item/ray_gun.png"), OverloadedConfig.INSTANCE.textureResolutions.itemResolution);
}
use of net.minecraft.client.renderer.model.ModelResourceLocation in project Overloaded by CJ-MC-Mods.
the class ItemMultiHelmet 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/multi_helmet.png"), OverloadedConfig.INSTANCE.textureResolutions.multiArmorResolution);
}
use of net.minecraft.client.renderer.model.ModelResourceLocation in project Overloaded by CJ-MC-Mods.
the class ItemItemCore 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/item_core.png"), OverloadedConfig.INSTANCE.textureResolutions.itemResolution);
}
use of net.minecraft.client.renderer.model.ModelResourceLocation in project NetherEx by LogicTechCorp.
the class MimicModelHandler method onModelBake.
@SubscribeEvent
public static void onModelBake(ModelBakeEvent event) {
MimicBlock quartzOreBlock = (MimicBlock) NetherExBlocks.QUARTZ_ORE.get();
if (quartzOreBlock != null) {
ModelResourceLocation modelLocation = quartzOreBlock.getModelLocation();
IBakedModel model = event.getModelRegistry().get(modelLocation);
if (model != null) {
event.getModelRegistry().put(modelLocation, new MimicBakedModel(model, quartzOreBlock.getMimicType()));
}
}
}
Aggregations