Class BlockMap<V>
- All Implemented Interfaces:
Map<BlockVector3,V>
A space-efficient map implementation for block locations.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()compute(BlockVector3 key, BiFunction<? super BlockVector3, ? super V, ? extends V> remappingFunction) computeIfAbsent(BlockVector3 key, Function<? super BlockVector3, ? extends V> mappingFunction) computeIfPresent(BlockVector3 key, BiFunction<? super BlockVector3, ? super V, ? extends V> remappingFunction) booleancontainsKey(Object key) booleancontainsValue(Object value) static <V> BlockMap<V> copyOf(Map<? extends BlockVector3, ? extends V> source) static <V> BlockMap<V> create()entrySet()booleanvoidforEach(BiConsumer<? super BlockVector3, ? super V> action) getOrDefault(Object key, V defaultValue) inthashCode()merge(BlockVector3 key, V value, BiFunction<? super V, ? super V, ? extends V> remappingFunction) put(BlockVector3 key, V value) voidputAll(Map<? extends BlockVector3, ? extends V> m) putIfAbsent(BlockVector3 key, V value) booleanreplace(BlockVector3 key, V value) booleanreplace(BlockVector3 key, V oldValue, V newValue) voidreplaceAll(BiFunction<? super BlockVector3, ? super V, ? extends V> function) intsize()values()Methods inherited from class java.util.AbstractMap
clone, isEmpty, keySet, toString
-
Method Details
-
create
-
createForBaseBlock
-
copyOf
-
put
- Specified by:
putin interfaceMap<BlockVector3,V> - Overrides:
putin classAbstractMap<BlockVector3,V>
-
getOrDefault
-
forEach
-
replaceAll
-
putIfAbsent
-
remove
-
replace
-
replace
-
computeIfAbsent
public V computeIfAbsent(BlockVector3 key, Function<? super BlockVector3, ? extends V> mappingFunction) -
computeIfPresent
public V computeIfPresent(BlockVector3 key, BiFunction<? super BlockVector3, ? super V, ? extends V> remappingFunction) -
compute
public V compute(BlockVector3 key, BiFunction<? super BlockVector3, ? super V, ? extends V> remappingFunction) -
merge
public V merge(BlockVector3 key, V value, BiFunction<? super V, ? super V, ? extends V> remappingFunction) -
entrySet
- Specified by:
entrySetin interfaceMap<BlockVector3,V> - Specified by:
entrySetin classAbstractMap<BlockVector3,V>
-
containsValue
- Specified by:
containsValuein interfaceMap<BlockVector3,V> - Overrides:
containsValuein classAbstractMap<BlockVector3,V>
-
containsKey
- Specified by:
containsKeyin interfaceMap<BlockVector3,V> - Overrides:
containsKeyin classAbstractMap<BlockVector3,V>
-
get
- Specified by:
getin interfaceMap<BlockVector3,V> - Overrides:
getin classAbstractMap<BlockVector3,V>
-
remove
- Specified by:
removein interfaceMap<BlockVector3,V> - Overrides:
removein classAbstractMap<BlockVector3,V>
-
putAll
- Specified by:
putAllin interfaceMap<BlockVector3,V> - Overrides:
putAllin classAbstractMap<BlockVector3,V>
-
clear
public void clear()- Specified by:
clearin interfaceMap<BlockVector3,V> - Overrides:
clearin classAbstractMap<BlockVector3,V>
-
size
public int size()- Specified by:
sizein interfaceMap<BlockVector3,V> - Overrides:
sizein classAbstractMap<BlockVector3,V>
-
values
- Specified by:
valuesin interfaceMap<BlockVector3,V> - Overrides:
valuesin classAbstractMap<BlockVector3,V>
-
equals
- Specified by:
equalsin interfaceMap<BlockVector3,V> - Overrides:
equalsin classAbstractMap<BlockVector3,V>
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceMap<BlockVector3,V> - Overrides:
hashCodein classAbstractMap<BlockVector3,V>
-