Search in sources :

Example 6 with OnlyIn

use of net.minecraftforge.api.distmarker.OnlyIn 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);
}
Also used : ModelResourceLocation(net.minecraft.client.renderer.model.ModelResourceLocation) ModelResourceLocation(net.minecraft.client.renderer.model.ModelResourceLocation) OnlyIn(net.minecraftforge.api.distmarker.OnlyIn)

Example 7 with OnlyIn

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

the class BlockEnergyExtractor method registerModel.

@Override
@OnlyIn(Dist.CLIENT)
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 8 with OnlyIn

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

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

the class BlockHyperEnergySender method registerModel.

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

Example 10 with OnlyIn

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

the class BlockHyperFluidSender method registerModel.

@Override
@OnlyIn(Dist.CLIENT)
public void registerModel() {
    super.registerModel();
    ImageUtil.registerDynamicTexture(new ResourceLocation(MODID, "textures/block/hyper_fluid_sender.png"), OverloadedConfig.INSTANCE.textureResolutions.blockResolution);
}
Also used : ResourceLocation(net.minecraft.util.ResourceLocation) 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