mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 04:52:25 +00:00
More configuration work
This commit is contained in:
1 parent
1f59f8ca1d
commit
8ce105d95f
14 files changed
+132
-84
No files matched your search
@@ -1,30 +1,54 @@
|
||||
package mekanism.common;
|
||||
|
||||
import mekanism.api.EnumColor;
|
||||
import mekanism.common.util.MekanismUtils;
|
||||
|
||||
public class SideData
|
||||
{
|
||||
/** The color of this SideData */
|
||||
public EnumColor color;
|
||||
|
||||
/** The name of this SideData */
|
||||
public String name;
|
||||
|
||||
/** Int[] of available side slots */
|
||||
/** Int[] of available side slots, can be used for items, gases, or items */
|
||||
public int[] availableSlots;
|
||||
|
||||
/** EnergyState representing this SideData */
|
||||
public EnergyState energyState;
|
||||
|
||||
public SideData(EnumColor colour, int[] slots)
|
||||
public SideData(String n, EnumColor colour, int[] slots)
|
||||
{
|
||||
name = n;
|
||||
color = colour;
|
||||
availableSlots = slots;
|
||||
}
|
||||
|
||||
public SideData(EnumColor colour, EnergyState state)
|
||||
public SideData(String n, EnumColor colour, EnergyState state)
|
||||
{
|
||||
name = n;
|
||||
color = colour;
|
||||
energyState = state;
|
||||
}
|
||||
|
||||
public String localize()
|
||||
{
|
||||
return MekanismUtils.localize("sideData." + name);
|
||||
}
|
||||
|
||||
public boolean hasSlot(int slot)
|
||||
{
|
||||
for(int i : availableSlots)
|
||||
{
|
||||
if(i == slot)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public static enum EnergyState
|
||||
{
|
||||
INPUT,
|
||||
|
||||
Reference in new issue
Block a user