Code example for BitSet

Methods: get

0
	private final BitSetCodec _bitSetCodec = new BitSetCodec();
 
	private boolean dirty = false;
 
	public boolean isConnected(ForgeDirection direction) {
		return _connected.get(direction.ordinal());
	} 
 
	public void setConnected(ForgeDirection direction, boolean value) {
		if (_connected.get(direction.ordinal()) != value){
			_connected.set(direction.ordinal(), value);
			dirty = true;
		} 
	} 
 
	public boolean isDirty() { 
		return dirty;
	} 
 
	public void clean() { 
		dirty = false;