Removed RIBlockRenderingHandler

This commit is contained in:
Calclavia 2014-03-03 20:57:22 +08:00
parent 56c75b56dd
commit 4b919ed7e3
21 changed files with 39 additions and 66 deletions

View file

@ -14,9 +14,9 @@ import net.minecraftforge.fluids.FluidStack;
import resonantinduction.core.Reference;
import resonantinduction.core.ResonantInduction;
import resonantinduction.core.fluid.BlockFluidNode;
import resonantinduction.core.render.RIBlockRenderingHandler;
import universalelectricity.api.UniversalElectricity;
import universalelectricity.api.vector.Vector3;
import calclavia.lib.render.block.BlockRenderingHandler;
import calclavia.lib.utility.FluidUtility;
import calclavia.lib.utility.WorldUtility;
import cpw.mods.fml.relauncher.Side;
@ -157,7 +157,7 @@ public class BlockGutter extends BlockFluidNode
@SideOnly(Side.CLIENT)
public int getRenderType()
{
return RIBlockRenderingHandler.ID;
return BlockRenderingHandler.ID;
}
@Override

View file

@ -11,10 +11,10 @@ import net.minecraft.util.MovingObjectPosition;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import resonantinduction.core.fluid.BlockFluidNode;
import resonantinduction.core.render.RIBlockRenderingHandler;
import resonantinduction.mechanical.fluid.pipe.ItemBlockFluidContainer;
import universalelectricity.api.UniversalElectricity;
import universalelectricity.api.vector.Vector3;
import calclavia.lib.render.block.BlockRenderingHandler;
import calclavia.lib.utility.FluidUtility;
import calclavia.lib.utility.inventory.InventoryUtility;
import cpw.mods.fml.relauncher.Side;
@ -46,7 +46,7 @@ public class BlockTank extends BlockFluidNode
@SideOnly(Side.CLIENT)
public int getRenderType()
{
return RIBlockRenderingHandler.ID;
return BlockRenderingHandler.ID;
}
@Override

View file

@ -6,9 +6,9 @@ import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import resonantinduction.core.Reference;
import resonantinduction.core.render.RIBlockRenderingHandler;
import universalelectricity.api.vector.Vector3;
import calclavia.lib.prefab.block.BlockTile;
import calclavia.lib.render.block.BlockRenderingHandler;
import calclavia.lib.utility.inventory.InventoryUtility;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
@ -25,7 +25,7 @@ public class BlockCastingMold extends BlockTile
@Override
public int getRenderType()
{
return RIBlockRenderingHandler.ID;
return BlockRenderingHandler.ID;
}
@Override

View file

@ -7,12 +7,12 @@ import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.MovingObjectPosition;
import net.minecraft.world.World;
import resonantinduction.core.render.RIBlockRenderingHandler;
import universalelectricity.api.UniversalElectricity;
import calclavia.components.CalclaviaLoader;
import calclavia.lib.multiblock.fake.IBlockActivate;
import calclavia.lib.multiblock.fake.IMultiBlock;
import calclavia.lib.prefab.block.BlockTile;
import calclavia.lib.render.block.BlockRenderingHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
@ -90,7 +90,7 @@ public class BlockArmbot extends BlockTile
@Override
public int getRenderType()
{
return RIBlockRenderingHandler.ID;
return BlockRenderingHandler.ID;
}
@Override

View file

@ -14,10 +14,10 @@ import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.MovingObjectPosition;
import net.minecraft.world.World;
import resonantinduction.core.Reference;
import resonantinduction.core.render.RIBlockRenderingHandler;
import universalelectricity.api.CompatibilityModule;
import universalelectricity.api.UniversalElectricity;
import calclavia.lib.prefab.block.BlockSidedIO;
import calclavia.lib.render.block.BlockRenderingHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
@ -120,7 +120,7 @@ public class BlockBattery extends BlockSidedIO implements ITileEntityProvider
@SideOnly(Side.CLIENT)
public int getRenderType()
{
return RIBlockRenderingHandler.INSTANCE.getRenderId();
return BlockRenderingHandler.INSTANCE.getRenderId();
}
@Override

View file

@ -4,9 +4,9 @@ import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import resonantinduction.core.Reference;
import resonantinduction.core.render.RIBlockRenderingHandler;
import universalelectricity.api.UniversalElectricity;
import calclavia.lib.prefab.block.BlockRotatable;
import calclavia.lib.render.block.BlockRenderingHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
@ -78,6 +78,6 @@ public class BlockGenerator extends BlockRotatable
@Override
public int getRenderType()
{
return RIBlockRenderingHandler.ID;
return BlockRenderingHandler.ID;
}
}

View file

@ -5,10 +5,10 @@ import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.Icon;
import net.minecraft.world.World;
import resonantinduction.core.Reference;
import resonantinduction.core.render.RIBlockRenderingHandler;
import resonantinduction.electrical.battery.TileEnergyDistribution;
import universalelectricity.api.UniversalElectricity;
import calclavia.lib.prefab.block.BlockTile;
import calclavia.lib.render.block.BlockRenderingHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
@ -94,6 +94,6 @@ public class BlockSolarPanel extends BlockTile
@Override
public int getRenderType()
{
return RIBlockRenderingHandler.ID;
return BlockRenderingHandler.ID;
}
}

View file

@ -11,10 +11,10 @@ import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import resonantinduction.core.MultipartUtility;
import resonantinduction.core.Reference;
import resonantinduction.core.render.RIBlockRenderingHandler;
import universalelectricity.api.UniversalElectricity;
import universalelectricity.api.vector.VectorWorld;
import calclavia.lib.prefab.block.BlockSidedIO;
import calclavia.lib.render.block.BlockRenderingHandler;
import calclavia.lib.utility.LanguageUtility;
import calclavia.lib.utility.LinkUtility;
import calclavia.lib.utility.WrenchUtility;
@ -131,7 +131,7 @@ public class BlockTesla extends BlockSidedIO implements ITileEntityProvider
public void onNeighborBlockChange(World world, int x, int y, int z, int id)
{
TileEntity tile = world.getBlockTileEntity(x, y, z);
if (tile instanceof TileTesla)
{
((TileTesla) tile).updatePositionStatus();
@ -148,7 +148,7 @@ public class BlockTesla extends BlockSidedIO implements ITileEntityProvider
@Override
public int getRenderType()
{
return RIBlockRenderingHandler.INSTANCE.getRenderId();
return BlockRenderingHandler.INSTANCE.getRenderId();
}
@Override

View file

@ -14,10 +14,10 @@ import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import net.minecraftforge.common.ForgeDirection;
import resonantinduction.core.Reference;
import resonantinduction.core.render.RIBlockRenderingHandler;
import resonantinduction.mechanical.belt.TileConveyorBelt.SlantType;
import universalelectricity.api.UniversalElectricity;
import calclavia.lib.prefab.block.BlockTile;
import calclavia.lib.render.block.BlockRenderingHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
@ -369,7 +369,7 @@ public class BlockConveyorBelt extends BlockTile
@Override
public int getRenderType()
{
return RIBlockRenderingHandler.ID;
return BlockRenderingHandler.ID;
}
@Override

View file

@ -2,12 +2,11 @@ package resonantinduction.mechanical.energy.turbine;
import java.util.List;
import calclavia.lib.prefab.turbine.TileTurbine;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import resonantinduction.core.render.RIBlockRenderingHandler;
import calclavia.lib.render.block.BlockRenderingHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
@ -29,7 +28,7 @@ public class BlockWaterTurbine extends BlockMechanicalTurbine
@Override
public int getRenderType()
{
return RIBlockRenderingHandler.ID;
return BlockRenderingHandler.ID;
}
@Override

View file

@ -6,7 +6,7 @@ import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import resonantinduction.core.render.RIBlockRenderingHandler;
import calclavia.lib.render.block.BlockRenderingHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
@ -28,7 +28,7 @@ public class BlockWindTurbine extends BlockMechanicalTurbine
@Override
public int getRenderType()
{
return RIBlockRenderingHandler.ID;
return BlockRenderingHandler.ID;
}
@Override

View file

@ -3,9 +3,9 @@ package resonantinduction.mechanical.fluid.transport;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import resonantinduction.core.Reference;
import resonantinduction.core.render.RIBlockRenderingHandler;
import universalelectricity.api.UniversalElectricity;
import calclavia.lib.prefab.block.BlockRotatable;
import calclavia.lib.render.block.BlockRenderingHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
@ -40,7 +40,7 @@ public class BlockPump extends BlockRotatable
@Override
public int getRenderType()
{
return RIBlockRenderingHandler.ID;
return BlockRenderingHandler.ID;
}
}

View file

@ -6,8 +6,8 @@ import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.ChatMessageComponent;
import net.minecraft.world.World;
import resonantinduction.core.prefab.imprint.BlockImprintable;
import resonantinduction.core.render.RIBlockRenderingHandler;
import universalelectricity.api.UniversalElectricity;
import calclavia.lib.render.block.BlockRenderingHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
@ -93,7 +93,7 @@ public class BlockManipulator extends BlockImprintable
@Override
public int getRenderType()
{
return RIBlockRenderingHandler.ID;
return BlockRenderingHandler.ID;
}
@Override

View file

@ -6,8 +6,8 @@ import net.minecraft.util.Icon;
import net.minecraft.world.World;
import resonantinduction.core.Reference;
import resonantinduction.core.prefab.imprint.BlockImprintable;
import resonantinduction.core.render.RIBlockRenderingHandler;
import universalelectricity.api.UniversalElectricity;
import calclavia.lib.render.block.BlockRenderingHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
@ -31,7 +31,7 @@ public class BlockRejector extends BlockImprintable
@Override
public int getRenderType()
{
return RIBlockRenderingHandler.ID;
return BlockRenderingHandler.ID;
}
@Override

View file

@ -27,7 +27,7 @@ public class TileSorter extends TileBase
@SideOnly(Side.CLIENT)
protected TileRender renderer()
{System.out.println("TEST");
{
return new TileRender()
{
final IModelCustom MODEL = AdvancedModelLoader.loadModel(Reference.MODEL_DIRECTORY + "sorter.tcn");

View file

@ -6,8 +6,8 @@ import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.ChatMessageComponent;
import net.minecraft.world.World;
import resonantinduction.core.prefab.imprint.BlockImprintable;
import resonantinduction.core.render.RIBlockRenderingHandler;
import universalelectricity.api.UniversalElectricity;
import calclavia.lib.render.block.BlockRenderingHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
@ -93,7 +93,7 @@ public class BlockSorter extends BlockImprintable
@Override
public int getRenderType()
{
return RIBlockRenderingHandler.ID;
return BlockRenderingHandler.ID;
}
@Override

View file

@ -4,8 +4,8 @@ import net.minecraft.block.material.Material;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import resonantinduction.core.Reference;
import resonantinduction.core.render.RIBlockRenderingHandler;
import calclavia.lib.prefab.block.BlockRotatable;
import calclavia.lib.render.block.BlockRenderingHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
@ -28,7 +28,7 @@ public class BlockMechanicalPiston extends BlockRotatable
@Override
public int getRenderType()
{
return RIBlockRenderingHandler.ID;
return BlockRenderingHandler.ID;
}
@Override

View file

@ -9,8 +9,8 @@ import net.minecraft.util.DamageSource;
import net.minecraft.world.World;
import net.minecraftforge.common.ForgeDirection;
import resonantinduction.core.Reference;
import resonantinduction.core.render.RIBlockRenderingHandler;
import calclavia.lib.prefab.block.BlockRotatable;
import calclavia.lib.render.block.BlockRenderingHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
@ -34,7 +34,7 @@ public class BlockGrindingWheel extends BlockRotatable implements ITileEntityPro
@Override
public int getRenderType()
{
return RIBlockRenderingHandler.ID;
return BlockRenderingHandler.ID;
}
@Override
@ -44,7 +44,7 @@ public class BlockGrindingWheel extends BlockRotatable implements ITileEntityPro
{
((EntityItem) entity).age--;
}
TileEntity tileEntity = world.getBlockTileEntity(x, y, z);
if (tileEntity instanceof TileGrinderWheel)

View file

@ -4,9 +4,9 @@ import net.minecraft.block.ITileEntityProvider;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import resonantinduction.core.Reference;
import resonantinduction.core.render.RIBlockRenderingHandler;
import universalelectricity.api.UniversalElectricity;
import calclavia.lib.prefab.block.BlockRotatable;
import calclavia.lib.render.block.BlockRenderingHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
@ -28,7 +28,7 @@ public class BlockMixer extends BlockRotatable implements ITileEntityProvider
@Override
public int getRenderType()
{
return RIBlockRenderingHandler.ID;
return BlockRenderingHandler.ID;
}
@Override

View file

@ -6,10 +6,8 @@ import net.minecraft.client.particle.EntityDiggingFX;
import net.minecraft.client.particle.EntityFX;
import net.minecraft.world.World;
import net.minecraftforge.common.MinecraftForge;
import resonantinduction.core.render.RIBlockRenderingHandler;
import universalelectricity.api.vector.Vector3;
import cpw.mods.fml.client.FMLClientHandler;
import cpw.mods.fml.client.registry.RenderingRegistry;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
@ -24,7 +22,6 @@ public class ClientProxy extends CommonProxy
public void preInit()
{
MinecraftForge.EVENT_BUS.register(SoundHandler.INSTANCE);
RenderingRegistry.registerBlockHandler(RIBlockRenderingHandler.INSTANCE);
}
@Override

View file

@ -1,23 +0,0 @@
package resonantinduction.core.render;
import calclavia.lib.render.block.BlockRenderingHandler;
import cpw.mods.fml.client.registry.RenderingRegistry;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
/**
* @author Calclavia
*
*/
@SideOnly(Side.CLIENT)
public class RIBlockRenderingHandler extends BlockRenderingHandler
{
public static final RIBlockRenderingHandler INSTANCE = new RIBlockRenderingHandler();
public static final int ID = RenderingRegistry.getNextAvailableRenderId();
@Override
public int getRenderId()
{
return ID;
}
}