package net.cshift.transit.basic; import java.util.*; import net.cshift.transit.network.system.*; import net.minecraft.block.entity.*; public abstract class AbstractNode extends BlockEntity implements INode { public AbstractNode(BlockEntityType type) { super(type); } HashMap data = new HashMap(); ArrayList connections = new ArrayList(0); @Override public abstract boolean hasGroup(String groupID); @Override public ISystem getSystem() { return null; } @Override public Object getData(String groupID) { return data.get(groupID); } @Override public void setData(Object dat, String groupID) { data.put(groupID, dat); } @Override public Connection[] getConnections() { return (Connection[]) connections.toArray(); } @Override public int connectionCount() { return connections.size(); } }