Temporarily disable multipart functionality, got transmitters to work, reorganize multipart code

This commit is contained in:
aidancbrady committed 2017-03-28 22:49:29 -04:00
1 parent 89905c836b
commit 2aad738c3d
43 files changed
+283 -208

No files matched your search

@@ -0,0 +1,51 @@
package mekanism.common.block.property;
import java.util.Arrays;
import mekanism.common.tile.transmitter.TileEntitySidedPipe.ConnectionType;
import net.minecraftforge.common.property.IUnlistedProperty;
public class PropertyConnection implements IUnlistedProperty<PropertyConnection>
{
public static PropertyConnection INSTANCE = new PropertyConnection();
public byte connectionByte;
public byte transmitterConnections;
public ConnectionType[] connectionTypes;
public boolean renderCenter;
public PropertyConnection() {}
public PropertyConnection(byte b, byte b1, ConnectionType[] types, boolean center)
{
connectionByte = b;
transmitterConnections = b1;
connectionTypes = types;
renderCenter = center;
}
@Override
public String getName()
{
return "connection";
}
@Override
public boolean isValid(PropertyConnection value)
{
return true;
}
@Override
public Class getType()
{
return getClass();
}
@Override
public String valueToString(PropertyConnection value)
{
return Byte.toString(value.connectionByte) + "_" + Byte.toString(value.transmitterConnections) + "_"
+ Arrays.toString(value.connectionTypes) + "_" + value.renderCenter;
}
}