Rethought the ideas - alchemy arrays it is!
This commit is contained in:
parent
07fd936081
commit
48db29113b
31
src/main/java/com/pahimar/ee3/alchemy/Symbol.java
Normal file
31
src/main/java/com/pahimar/ee3/alchemy/Symbol.java
Normal file
|
@ -0,0 +1,31 @@
|
|||
package com.pahimar.ee3.alchemy;
|
||||
|
||||
import com.pahimar.ee3.util.ResourceLocationHelper;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
|
||||
public class Symbol
|
||||
{
|
||||
private final ResourceLocation texture;
|
||||
private final float size;
|
||||
|
||||
public Symbol(String texture, float size)
|
||||
{
|
||||
this(ResourceLocationHelper.getResourceLocation(texture), size);
|
||||
}
|
||||
|
||||
public Symbol(ResourceLocation texture, float size)
|
||||
{
|
||||
this.texture = texture;
|
||||
this.size = size;
|
||||
}
|
||||
|
||||
public ResourceLocation getTexture()
|
||||
{
|
||||
return texture;
|
||||
}
|
||||
|
||||
public float getSize()
|
||||
{
|
||||
return size;
|
||||
}
|
||||
}
|
|
@ -2,19 +2,19 @@ package com.pahimar.ee3.block;
|
|||
|
||||
import com.pahimar.ee3.reference.Names;
|
||||
import com.pahimar.ee3.reference.RenderIds;
|
||||
import com.pahimar.ee3.tileentity.TileEntityAlchemySymbol;
|
||||
import com.pahimar.ee3.tileentity.TileEntityAlchemyArray;
|
||||
import net.minecraft.block.ITileEntityProvider;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class BlockAlchemySymbol extends BlockEE implements ITileEntityProvider
|
||||
public class BlockAlchemyArray extends BlockEE implements ITileEntityProvider
|
||||
{
|
||||
public BlockAlchemySymbol()
|
||||
public BlockAlchemyArray()
|
||||
{
|
||||
super(Material.circuits);
|
||||
this.setCreativeTab(null);
|
||||
this.setBlockName(Names.Blocks.ALCHEMY_SYMBOL);
|
||||
this.setBlockName(Names.Blocks.ALCHEMY_ARRAY);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -32,7 +32,7 @@ public class BlockAlchemySymbol extends BlockEE implements ITileEntityProvider
|
|||
@Override
|
||||
public int getRenderType()
|
||||
{
|
||||
return RenderIds.alchemySymbol;
|
||||
return RenderIds.alchemyArray;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -44,6 +44,6 @@ public class BlockAlchemySymbol extends BlockEE implements ITileEntityProvider
|
|||
@Override
|
||||
public TileEntity createNewTileEntity(World world, int metaData)
|
||||
{
|
||||
return new TileEntityAlchemySymbol();
|
||||
return new TileEntityAlchemyArray();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
package com.pahimar.ee3.client.renderer.tileentity;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public class TileEntityRendererAlchemyArray extends TileEntitySpecialRenderer
|
||||
{
|
||||
@Override
|
||||
public void renderTileEntityAt(TileEntity tileEntity, double x, double y, double z, float tick)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
|
@ -18,7 +18,7 @@ public class ModBlocks
|
|||
public static final BlockEE glassBell = new BlockGlassBell();
|
||||
public static final BlockEE researchStation = new BlockResearchStation();
|
||||
public static final BlockEE augmentationTable = new BlockAugmentationTable();
|
||||
public static final BlockEE alchemySymbol = new BlockAlchemySymbol();
|
||||
public static final BlockEE alchemyArray = new BlockAlchemyArray();
|
||||
|
||||
public static void init()
|
||||
{
|
||||
|
@ -30,6 +30,6 @@ public class ModBlocks
|
|||
GameRegistry.registerBlock(alchemicalChest, ItemBlockAlchemicalChest.class, Names.Blocks.ALCHEMICAL_CHEST);
|
||||
GameRegistry.registerBlock(chalkBlock, Names.Blocks.CHALK);
|
||||
GameRegistry.registerBlock(alchemicalFuelBlock, ItemBlockAlchemicalFuel.class, Names.Blocks.ALCHEMICAL_FUEL);
|
||||
GameRegistry.registerBlock(alchemySymbol, Names.Blocks.ALCHEMY_SYMBOL);
|
||||
GameRegistry.registerBlock(alchemyArray, Names.Blocks.ALCHEMY_ARRAY);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -52,7 +52,7 @@ public class ClientProxy extends CommonProxy
|
|||
RenderIds.glassBell = RenderingRegistry.getNextAvailableRenderId();
|
||||
RenderIds.researchStation = RenderingRegistry.getNextAvailableRenderId();
|
||||
RenderIds.augmentationTable = RenderingRegistry.getNextAvailableRenderId();
|
||||
RenderIds.alchemySymbol = RenderingRegistry.getNextAvailableRenderId();
|
||||
RenderIds.alchemyArray = RenderingRegistry.getNextAvailableRenderId();
|
||||
|
||||
MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(ModBlocks.alchemicalChest), new ItemRendererAlchemicalChest());
|
||||
MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(ModBlocks.aludel), new ItemRendererAludel());
|
||||
|
@ -67,5 +67,6 @@ public class ClientProxy extends CommonProxy
|
|||
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityGlassBell.class, new TileEntityRendererGlassBell());
|
||||
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityResearchStation.class, new TileEntityRendererResearchStation());
|
||||
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityAugmentationTable.class, new TileEntityRendererAugmentationTable());
|
||||
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityAlchemyArray.class, new TileEntityRendererAlchemyArray());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -36,6 +36,6 @@ public abstract class CommonProxy implements IProxy
|
|||
GameRegistry.registerTileEntityWithAlternatives(TileEntityGlassBell.class, Names.Blocks.GLASS_BELL, "tile." + Names.Blocks.GLASS_BELL);
|
||||
GameRegistry.registerTileEntity(TileEntityResearchStation.class, Names.Blocks.RESEARCH_STATION);
|
||||
GameRegistry.registerTileEntity(TileEntityAugmentationTable.class, Names.Blocks.AUGMENTATION_TABLE);
|
||||
GameRegistry.registerTileEntity(TileEntityAlchemySymbol.class, Names.Blocks.ALCHEMY_SYMBOL);
|
||||
GameRegistry.registerTileEntity(TileEntityAlchemyArray.class, Names.Blocks.ALCHEMY_ARRAY);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@ public class Names
|
|||
public static final String RESEARCH_STATION = "researchStation";
|
||||
public static final String AUGMENTATION_TABLE = "augmentationTable";
|
||||
public static final String TRANSMUTATION_SQUARE = "transmutationSquare";
|
||||
public static final String ALCHEMY_SYMBOL = "alchemySymbol";
|
||||
public static final String ALCHEMY_ARRAY = "alchemyArray";
|
||||
}
|
||||
|
||||
public static final class Items
|
||||
|
|
|
@ -8,5 +8,5 @@ public class RenderIds
|
|||
public static int glassBell;
|
||||
public static int researchStation;
|
||||
public static int augmentationTable;
|
||||
public static int alchemySymbol;
|
||||
public static int alchemyArray;
|
||||
}
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
package com.pahimar.ee3.tileentity;
|
||||
|
||||
public class TileEntityAlchemyArray extends TileEntityEE
|
||||
{
|
||||
}
|
|
@ -1,28 +0,0 @@
|
|||
package com.pahimar.ee3.tileentity;
|
||||
|
||||
public class TileEntityAlchemySymbol extends TileEntityEE
|
||||
{
|
||||
/**
|
||||
* Shape (3 bits):
|
||||
* - Line
|
||||
* - Circle
|
||||
* - Triangle
|
||||
* - Square
|
||||
* - Pentagon
|
||||
* - Hexagon
|
||||
* - Heptagon
|
||||
* - Octagon
|
||||
* Size (2 bits):
|
||||
* - Tiny
|
||||
* - Small
|
||||
* - Medium
|
||||
* - Large
|
||||
* Facing & Orientation (4 bits):
|
||||
* - North
|
||||
* - South
|
||||
* - East
|
||||
* - West
|
||||
* - Up
|
||||
* - Down
|
||||
*/
|
||||
}
|
Loading…
Reference in a new issue