Cleanup, fixed transmitter wrench

This commit is contained in:
aidancbrady committed 2016-05-24 00:17:01 -04:00
1 parent f808b987f5
commit d46e3e28b2
12 files changed
+106 -217

No files matched your search

@@ -1,7 +1,6 @@
package mekanism.common.multipart;
import mcmultipart.MCMultiPartMod;
import mekanism.api.EnumColor;
import mekanism.common.block.states.BlockStateFacing;
import net.minecraft.block.properties.IProperty;
import net.minecraftforge.common.property.ExtendedBlockState;
@@ -9,46 +8,8 @@ import net.minecraftforge.common.property.IUnlistedProperty;
public class GlowPanelBlockState extends ExtendedBlockState
{
public static GlowPanelColorProperty colorState = new GlowPanelColorProperty();
public GlowPanelBlockState()
{
super(MCMultiPartMod.multipart, new IProperty[] {BlockStateFacing.facingProperty}, new IUnlistedProperty[] {colorState});
}
public static class GlowPanelColorProperty implements IUnlistedProperty<GlowPanelColorProperty>
{
public EnumColor color;
public GlowPanelColorProperty() {}
public GlowPanelColorProperty(EnumColor c)
{
color = c;
}
@Override
public String getName()
{
return "color";
}
@Override
public boolean isValid(GlowPanelColorProperty value)
{
return true;
}
@Override
public Class getType()
{
return getClass();
}
@Override
public String valueToString(GlowPanelColorProperty value)
{
return color.getName();
}
super(MCMultiPartMod.multipart, new IProperty[] {BlockStateFacing.facingProperty}, new IUnlistedProperty[] {ColorProperty.INSTANCE});
}
}