equivalent-exchange-3/src/main/java/com/pahimar/ee3/tileentity/TileEntityAlchemyArray.java

42 lines
1 KiB
Java
Raw Normal View History

package com.pahimar.ee3.tileentity;
2014-10-02 06:16:47 +02:00
import com.pahimar.ee3.array.Glyph;
import com.pahimar.ee3.array.Symbols;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.util.AxisAlignedBB;
import java.util.ArrayList;
2014-10-02 06:16:47 +02:00
import java.util.Arrays;
import java.util.List;
public class TileEntityAlchemyArray extends TileEntityEE
{
2014-10-02 06:16:47 +02:00
private List<Glyph> glyphs;
private int largestSymbolSize;
public TileEntityAlchemyArray()
{
super();
2014-10-02 06:16:47 +02:00
glyphs = new ArrayList<Glyph>(Arrays.asList(Symbols.BASE_CIRCLE, Symbols.TRIANGLE));
this.largestSymbolSize = 1;
}
2014-10-02 06:16:47 +02:00
public List<Glyph> getGlyphs()
{
2014-10-02 06:16:47 +02:00
return glyphs;
}
public int getLargestSymbolSize()
{
return largestSymbolSize;
}
@Override
@SideOnly(Side.CLIENT)
public AxisAlignedBB getRenderBoundingBox()
{
return AxisAlignedBB.getBoundingBox(xCoord - largestSymbolSize, yCoord, zCoord - largestSymbolSize, xCoord + largestSymbolSize, yCoord, zCoord + largestSymbolSize);
}
}