Search in sources :

Example 11 with OnlyIn

use of net.minecraftforge.api.distmarker.OnlyIn 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);
}
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 12 with OnlyIn

use of net.minecraftforge.api.distmarker.OnlyIn in project Overloaded by CJ-MC-Mods.

the class BlockEnergyInjectorChest method registerModel.

@OnlyIn(Dist.CLIENT)
@Override
public void registerModel() {
    super.registerModel();
    ImageUtil.registerDynamicTexture(new ResourceLocation(MODID, "textures/block/energy_extractor.png"), OverloadedConfig.INSTANCE.textureResolutions.blockResolution);
}
Also used : ResourceLocation(net.minecraft.util.ResourceLocation) OnlyIn(net.minecraftforge.api.distmarker.OnlyIn)

Example 13 with OnlyIn

use of net.minecraftforge.api.distmarker.OnlyIn 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 14 with OnlyIn

use of net.minecraftforge.api.distmarker.OnlyIn 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 15 with OnlyIn

use of net.minecraftforge.api.distmarker.OnlyIn 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)

Aggregations

OnlyIn (net.minecraftforge.api.distmarker.OnlyIn)45 ResourceLocation (net.minecraft.util.ResourceLocation)23 ModelResourceLocation (net.minecraft.client.renderer.model.ModelResourceLocation)17 Minecraft (net.minecraft.client.Minecraft)5 ResizeableTextureGenerator (com.cjm721.overloaded.client.render.dynamic.general.ResizeableTextureGenerator)3 StringTextComponent (net.minecraft.util.text.StringTextComponent)3 TranslationTextComponent (net.minecraft.util.text.TranslationTextComponent)3 CompoundNBT (net.minecraft.nbt.CompoundNBT)2 AxisAlignedBB (net.minecraft.util.math.AxisAlignedBB)2 BlockPos (net.minecraft.util.math.BlockPos)2 Vector3d (net.minecraft.util.math.vector.Vector3d)2 SubscribeEvent (net.minecraftforge.eventbus.api.SubscribeEvent)2 BlockBPMultipart (com.bluepowermod.block.BlockBPMultipart)1 RailGunFireMessage (com.cjm721.overloaded.network.packets.RailGunFireMessage)1 Streams (com.google.common.collect.Streams)1 MinecraftProfileTexture (com.mojang.authlib.minecraft.MinecraftProfileTexture)1 Type (com.mojang.authlib.minecraft.MinecraftProfileTexture.Type)1 IVertexBuilder (com.mojang.blaze3d.vertex.IVertexBuilder)1 ILaunchPluginService (cpw.mods.modlauncher.serviceapi.ILaunchPluginService)1 ArrayList (java.util.ArrayList)1