Package cn.nukkit.level.format.anvil
Class MultiLayerStorage
java.lang.Object
cn.nukkit.level.format.anvil.LayerStorage
cn.nukkit.level.format.anvil.MultiLayerStorage
- All Implemented Interfaces:
Cloneable
- Since:
- 2020-10-02
- Author:
- joserobjr
-
Field Summary
Fields inherited from class cn.nukkit.level.format.anvil.LayerStorage
EMPTY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
void
compress
(Consumer<LayerStorage> setLayerStorage) void
getOrSetStorage
(Consumer<LayerStorage> setLayerStorage, IntSupplier contentVersion, int layer) getStorageOrEmpty
(int layer) getStorageOrNull
(int layer) boolean
int
size()
void
writeTo
(BinaryStream stream) Methods inherited from class cn.nukkit.level.format.anvil.LayerStorage
createBlockStorage
-
Constructor Details
-
MultiLayerStorage
-
MultiLayerStorage
-
-
Method Details
-
compress
- Overrides:
compress
in classLayerStorage
-
size
- Overrides:
size
in classLayerStorage
-
writeTo
- Overrides:
writeTo
in classLayerStorage
-
delayPaletteUpdates
- Overrides:
delayPaletteUpdates
in classLayerStorage
-
getOrSetStorage
@Since("1.4.0.0-PN") @PowerNukkitOnly public BlockStorage getOrSetStorage(@Nullable Consumer<LayerStorage> setLayerStorage, IntSupplier contentVersion, int layer) - Overrides:
getOrSetStorage
in classLayerStorage
-
getStorageOrEmpty
- Overrides:
getStorageOrEmpty
in classLayerStorage
-
getStorageOrNull
- Overrides:
getStorageOrNull
in classLayerStorage
-
hasBlocks
- Overrides:
hasBlocks
in classLayerStorage
-
clone
- Overrides:
clone
in classLayerStorage
-