Search in sources :

Example 31 with SideOnly

use of net.minecraftforge.fml.relauncher.SideOnly in project Overloaded by CJ-MC-Mods.

the class ItemMultiTool method registerModel.

@SideOnly(Side.CLIENT)
@Override
public void registerModel() {
    ModelResourceLocation location = new ModelResourceLocation(new ResourceLocation(MODID, "multi_tool"), null);
    ModelLoader.setCustomModelResourceLocation(this, 0, location);
}
Also used : ModelResourceLocation(net.minecraft.client.renderer.block.model.ModelResourceLocation) ModelResourceLocation(net.minecraft.client.renderer.block.model.ModelResourceLocation) SideOnly(net.minecraftforge.fml.relauncher.SideOnly)

Example 32 with SideOnly

use of net.minecraftforge.fml.relauncher.SideOnly in project Overloaded by CJ-MC-Mods.

the class BlockInfiniteWaterSource method registerModel.

@SideOnly(Side.CLIENT)
@Override
public void registerModel() {
    ModelResourceLocation location = new ModelResourceLocation(new ResourceLocation(MODID, "infinite_water_source"), null);
    ModelLoader.setCustomModelResourceLocation(Item.getItemFromBlock(this), 0, location);
}
Also used : ModelResourceLocation(net.minecraft.client.renderer.block.model.ModelResourceLocation) ResourceLocation(net.minecraft.util.ResourceLocation) ModelResourceLocation(net.minecraft.client.renderer.block.model.ModelResourceLocation) SideOnly(net.minecraftforge.fml.relauncher.SideOnly)

Example 33 with SideOnly

use of net.minecraftforge.fml.relauncher.SideOnly in project Overloaded by CJ-MC-Mods.

the class BlockItemInterface method registerModel.

@SideOnly(Side.CLIENT)
@Override
public void registerModel() {
    ModelLoader.setCustomModelResourceLocation(Item.getItemFromBlock(this), 0, new ModelResourceLocation(getRegistryName(), null));
    ClientRegistry.bindTileEntitySpecialRenderer(TileItemInterface.class, new ItemInterfaceRenderer());
}
Also used : ItemInterfaceRenderer(com.cjm721.overloaded.client.render.tile.ItemInterfaceRenderer) ModelResourceLocation(net.minecraft.client.renderer.block.model.ModelResourceLocation) SideOnly(net.minecraftforge.fml.relauncher.SideOnly)

Example 34 with SideOnly

use of net.minecraftforge.fml.relauncher.SideOnly in project Overloaded by CJ-MC-Mods.

the class BlockItemManipulator method registerModel.

@Override
@SideOnly(Side.CLIENT)
public void registerModel() {
    ModelResourceLocation location = new ModelResourceLocation(getRegistryName(), null);
    ModelLoader.setCustomModelResourceLocation(Item.getItemFromBlock(this), 0, location);
}
Also used : ModelResourceLocation(net.minecraft.client.renderer.block.model.ModelResourceLocation) SideOnly(net.minecraftforge.fml.relauncher.SideOnly)

Example 35 with SideOnly

use of net.minecraftforge.fml.relauncher.SideOnly in project Overloaded by CJ-MC-Mods.

the class BlockCompressed method registerModel.

@SideOnly(Side.CLIENT)
@Override
public void registerModel() {
    CompressedBlockAssets.addToTextureQueue(new CompressedBlockAssets.CompressedResourceLocation(getBaseModelLocation(), getRegistryName(), getCompressionAmount()));
    ModelResourceLocation rl = new ModelResourceLocation(getRegistryName(), "inventory");
    ModelLoader.setCustomModelResourceLocation(Item.getItemFromBlock(this), 0, rl);
}
Also used : CompressedBlockAssets(com.cjm721.overloaded.client.render.block.compressed.CompressedBlockAssets) ModelResourceLocation(net.minecraft.client.renderer.block.model.ModelResourceLocation) SideOnly(net.minecraftforge.fml.relauncher.SideOnly)

Aggregations

SideOnly (net.minecraftforge.fml.relauncher.SideOnly)271 ItemStack (net.minecraft.item.ItemStack)47 ModelResourceLocation (net.minecraft.client.renderer.block.model.ModelResourceLocation)44 ResourceLocation (net.minecraft.util.ResourceLocation)35 NBTTagCompound (net.minecraft.nbt.NBTTagCompound)34 IBlockState (net.minecraft.block.state.IBlockState)28 Block (net.minecraft.block.Block)26 SubscribeEvent (net.minecraftforge.fml.common.eventhandler.SubscribeEvent)26 TileEntity (net.minecraft.tileentity.TileEntity)17 EntityPlayer (net.minecraft.entity.player.EntityPlayer)13 BlockPos (net.minecraft.util.math.BlockPos)12 Vec3d (net.minecraft.util.math.Vec3d)11 Tessellator (net.minecraft.client.renderer.Tessellator)10 EnumFacing (net.minecraft.util.EnumFacing)9 AxisAlignedBB (net.minecraft.util.math.AxisAlignedBB)9 World (net.minecraft.world.World)9 Minecraft (net.minecraft.client.Minecraft)8 IOException (java.io.IOException)7 TextureManager (net.minecraft.client.renderer.texture.TextureManager)7 Item (net.minecraft.item.Item)7