Search in sources :

Example 6 with ModelResourceLocation

use of net.minecraft.client.renderer.model.ModelResourceLocation in project Overloaded by CJ-MC-Mods.

the class BlockItemManipulator method registerModel.

@Override
@OnlyIn(Dist.CLIENT)
public void registerModel() {
    ModelResourceLocation location = new ModelResourceLocation(getRegistryName(), null);
    // ModelLoader.setCustomModelResourceLocation(Item.getItemFromBlock(this), 0, location);
    ImageUtil.registerDynamicTexture(new ResourceLocation(MODID, "textures/block/item_manipulator.png"), OverloadedConfig.INSTANCE.textureResolutions.blockResolution);
}
Also used : ResourceLocation(net.minecraft.util.ResourceLocation) ModelResourceLocation(net.minecraft.client.renderer.model.ModelResourceLocation) ModelResourceLocation(net.minecraft.client.renderer.model.ModelResourceLocation) OnlyIn(net.minecraftforge.api.distmarker.OnlyIn)

Example 7 with ModelResourceLocation

use of net.minecraft.client.renderer.model.ModelResourceLocation in project Overloaded by CJ-MC-Mods.

the class BlockAlmostInfiniteBarrel method registerModel.

@OnlyIn(Dist.CLIENT)
@Override
public void registerModel() {
    ModelResourceLocation location = new ModelResourceLocation(new ResourceLocation(MODID, "almost_infinite_barrel"), null);
    // ModelLoader.setCustomModelResourceLocation(Item.getItemFromBlock(this), 0,
    // location);
    ResizeableTextureGenerator.addToTextureQueue(new ResizeableTextureGenerator.ResizableTexture(new ResourceLocation(MODID, "textures/block/almost_infinite_barrel.png"), new ResourceLocation(MODID, "textures/dynamic/blocks/almost_infinite_barrel.png"), OverloadedConfig.INSTANCE.textureResolutions.blockResolution));
}
Also used : ResizeableTextureGenerator(com.cjm721.overloaded.client.render.dynamic.general.ResizeableTextureGenerator) ResourceLocation(net.minecraft.util.ResourceLocation) ModelResourceLocation(net.minecraft.client.renderer.model.ModelResourceLocation) ModelResourceLocation(net.minecraft.client.renderer.model.ModelResourceLocation) OnlyIn(net.minecraftforge.api.distmarker.OnlyIn)

Example 8 with ModelResourceLocation

use of net.minecraft.client.renderer.model.ModelResourceLocation in project Overloaded by CJ-MC-Mods.

the class BlockAlmostInfiniteTank method registerModel.

@OnlyIn(Dist.CLIENT)
@Override
public void registerModel() {
    ModelResourceLocation location = new ModelResourceLocation(new ResourceLocation(MODID, "almost_infinite_tank"), null);
    // ModelLoader.setCustomModelResourceLocation(Item.getItemFromBlock(this), 0, location);
    ResizeableTextureGenerator.addToTextureQueue(new ResizeableTextureGenerator.ResizableTexture(new ResourceLocation(MODID, "textures/block/almost_infinite_tank.png"), new ResourceLocation(MODID, "textures/dynamic/blocks/almost_infinite_tank.png"), OverloadedConfig.INSTANCE.textureResolutions.blockResolution));
}
Also used : ResizeableTextureGenerator(com.cjm721.overloaded.client.render.dynamic.general.ResizeableTextureGenerator) ResourceLocation(net.minecraft.util.ResourceLocation) ModelResourceLocation(net.minecraft.client.renderer.model.ModelResourceLocation) ModelResourceLocation(net.minecraft.client.renderer.model.ModelResourceLocation) OnlyIn(net.minecraftforge.api.distmarker.OnlyIn)

Example 9 with ModelResourceLocation

use of net.minecraft.client.renderer.model.ModelResourceLocation in project Overloaded by CJ-MC-Mods.

the class ItemMultiBoots 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_boot.png"), OverloadedConfig.INSTANCE.textureResolutions.multiArmorResolution);
}
Also used : ResourceLocation(net.minecraft.util.ResourceLocation) ModelResourceLocation(net.minecraft.client.renderer.model.ModelResourceLocation) ModelResourceLocation(net.minecraft.client.renderer.model.ModelResourceLocation) OnlyIn(net.minecraftforge.api.distmarker.OnlyIn)

Example 10 with ModelResourceLocation

use of net.minecraft.client.renderer.model.ModelResourceLocation in project Overloaded by CJ-MC-Mods.

the class ItemMultiLeggings 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_leg.png"), OverloadedConfig.INSTANCE.textureResolutions.multiArmorResolution);
    ImageUtil.registerDynamicTexture(new ResourceLocation(MODID, "textures/item/multi_belt.png"), OverloadedConfig.INSTANCE.textureResolutions.multiArmorResolution);
}
Also used : ResourceLocation(net.minecraft.util.ResourceLocation) ModelResourceLocation(net.minecraft.client.renderer.model.ModelResourceLocation) ModelResourceLocation(net.minecraft.client.renderer.model.ModelResourceLocation) OnlyIn(net.minecraftforge.api.distmarker.OnlyIn)

Aggregations

ModelResourceLocation (net.minecraft.client.renderer.model.ModelResourceLocation)20 OnlyIn (net.minecraftforge.api.distmarker.OnlyIn)17 ResourceLocation (net.minecraft.util.ResourceLocation)15 ResizeableTextureGenerator (com.cjm721.overloaded.client.render.dynamic.general.ResizeableTextureGenerator)3 IBakedModel (net.minecraft.client.renderer.model.IBakedModel)2 MatrixStack (com.mojang.blaze3d.matrix.MatrixStack)1 MimicBlock (logictechcorp.libraryex.block.MimicBlock)1 MimicBakedModel (logictechcorp.libraryex.client.render.model.MimicBakedModel)1 TextureAtlasSprite (net.minecraft.client.renderer.texture.TextureAtlasSprite)1 BlockPos (net.minecraft.util.math.BlockPos)1 Matrix3f (net.minecraft.util.math.vector.Matrix3f)1 Matrix4f (net.minecraft.util.math.vector.Matrix4f)1 SubscribeEvent (net.minecraftforge.eventbus.api.SubscribeEvent)1