Class SlimefunChunkData
java.lang.Object
com.xzavier0722.mc.plugin.slimefun4.storage.controller.ADataContainer
com.xzavier0722.mc.plugin.slimefun4.storage.controller.SlimefunChunkData
SlimefunChunkData 是 Slimefun 中用于存储区块内所有方块数据的容器类。-
Method Summary
Modifier and TypeMethodDescriptioncreateBlockData(org.bukkit.Location l, String sfId) getBlockData(org.bukkit.Location l) org.bukkit.ChunkgetChunk()removeBlockData(org.bukkit.Location l) voidremoveData(String key) Removes data from the container.voidSets data in the container.protected voidsetIsDataLoaded(boolean isDataLoaded) Sets whether the data is loaded.Methods inherited from class com.xzavier0722.mc.plugin.slimefun4.storage.controller.ADataContainer
checkData, getAllData, getCacheInternal, getData, getDataKeys, getKey, isDataLoaded, removeCacheInternal, setCacheInternal
-
Method Details
-
getChunk
@Nonnull public org.bukkit.Chunk getChunk() -
createBlockData
@Nonnull @ParametersAreNonnullByDefault public SlimefunBlockData createBlockData(org.bukkit.Location l, String sfId) -
getBlockData
@Nullable @ParametersAreNonnullByDefault public SlimefunBlockData getBlockData(org.bukkit.Location l) -
removeBlockData
@Nullable @ParametersAreNonnullByDefault public SlimefunBlockData removeBlockData(org.bukkit.Location l) -
setData
Description copied from class:ADataContainerSets data in the container.- Specified by:
setDatain classADataContainer- Parameters:
key- The key to setval- The value to set
-
removeData
Description copied from class:ADataContainerRemoves data from the container.- Specified by:
removeDatain classADataContainer- Parameters:
key- The key to remove
-
getAllBlockData
-
setIsDataLoaded
protected void setIsDataLoaded(boolean isDataLoaded) Description copied from class:ADataContainerSets whether the data is loaded.- Overrides:
setIsDataLoadedin classADataContainer- Parameters:
isDataLoaded- Whether data is loaded
-