public static byte getSide(Side side) { return sideBits.get(side); }
/** * Retrieves the value for <tt>key</tt> * * @param key an <code>Object</code> value * @return the value of <tt>key</tt> or null if no such mapping exists. */ public Byte get( Object key ) { byte v = _map.get( key ); // There may be a false positive since primitive maps // cannot return null, so we have to do an extra // check here. if ( v == _map.getNoEntryValue() ) { return null; } else { return wrapValue( v ); } }
public static byte getSides(Set<Side> sides) { byte result = 0; for (Side side : sides) { result += sideBits.get(side); } return result; }
public static byte addSide(byte sideBit, Side... sides) { byte result = sideBit; for (Side side : sides) { result |= sideBits.get(side); } return result; }
public static boolean hasSide(byte sideBit, Side side) { return (sideBit & sideBits.get(side)) > 0; }
/** * Retrieves the value for <tt>key</tt> * * @param key an <code>Object</code> value * @return the value of <tt>key</tt> or null if no such mapping exists. */ public Byte get( Object key ) { byte v = _map.get( key ); // There may be a false positive since primitive maps // cannot return null, so we have to do an extra // check here. if ( v == _map.getNoEntryValue() ) { return null; } else { return wrapValue( v ); } }
public byte get( Object key ) { synchronized( mutex ) { return m.get( key ); } }
/** * Retrieves the value for <tt>key</tt> * * @param key an <code>Object</code> value * @return the value of <tt>key</tt> or null if no such mapping exists. */ public Byte get( Object key ) { byte v = _map.get( key ); // There may be a false positive since primitive maps // cannot return null, so we have to do an extra // check here. if ( v == _map.getNoEntryValue() ) { return null; } else { return wrapValue( v ); } }
public byte get( Object key ) { return m.get( key ); }
public static byte getSides(Side... sides) { byte result = 0; for (Side side : sides) { final byte sideBit = sideBits.get(side); if ((result & sideBit) > 0) { throw new IllegalArgumentException("Cannot have multiples of the same side"); } result += sideBit; } return result; }
@Override public byte getValueAt(Vector3i pos) { if (!relevantRegion.encompasses(pos)) { return UNAVAILABLE; } return lightData.get(pos); }
public byte get( Object key ) { synchronized( mutex ) { return m.get( key ); } }
@Override public byte get( Object key ) { synchronized( mutex ) { return m.get( key ); } }
public byte get( Object key ) { synchronized( mutex ) { return m.get( key ); } }
@Override public byte get( Object key ) { return m.get( key ); }
public byte get( Object key ) { return m.get( key ); }
public byte get( Object key ) { synchronized( mutex ) { return m.get( key ); } }
public byte get( Object key ) { return m.get( key ); }