filter

inline fun filter(filter: (value: V & Any) -> Boolean): CubeFaceMap<V?>

Returns a new CubeFaceMap where values not matching filter are replaced with null.


inline fun filter(filter: (face: BlockFace, value: V & Any) -> Boolean): CubeFaceMap<V?>

Returns a new CubeFaceMap where values not matching filter are replaced with null. The filter also receives the BlockFace.