BlockCache

public class BlockCache extends BaseCache

Properties

Link copied to clipboard
public static Cache<String, String> blockCache
Link copied to clipboard
private final CuckooFilter blockFilter
Link copied to clipboard
private final Map<String, String> containerCache
Link copied to clipboard
public final static BlockCache INSTANCE
Link copied to clipboard
private final Cache<String, BlockInfo> tempBlockCache2

Functions

Link copied to clipboard
public final Unit addBlock(Block block, UUID owner, String setting, List<String> extraData)
public final Unit addBlock(Block block, String owner, String setting, List<String> extraData)
public final Unit addBlock(BlockState state, UUID owner, String setting, List<String> extraData)
Link copied to clipboard
public final Unit addBreakingCache(String loc, BlockInfo blockInfo)
Link copied to clipboard
public final String blockToString(Block block)
public final String blockToString(BlockState block)
Link copied to clipboard
public final String dropItemToString(Item entity)
Link copied to clipboard
Link copied to clipboard
public final BlockInfo getBlockInfo(String key)

获取方块绑定的玩家

public final BlockInfo getBlockInfo(Block block)

获取方块绑定的信息

Link copied to clipboard
public final BlockInfo getBreakingCache(String loc)
Link copied to clipboard
Link copied to clipboard
public final Cache<String, BlockInfo> getTempBlockCache2()
Link copied to clipboard
public Unit init(CacheManager cacheManager)

初始化

Link copied to clipboard
public final CuckooFilter loadFilter(File file)
Link copied to clipboard
public final Boolean mightContain(String str)
Link copied to clipboard
Link copied to clipboard
public Unit onSave()

保存

Link copied to clipboard
public Unit reloadFilter()
Link copied to clipboard
public final Unit removeBlock(String str)
public final Unit removeBlock(Block block)
public final Unit removeBlock(BlockState block)
Link copied to clipboard
public final Unit removeBreakingCache(String loc)
Link copied to clipboard
public final Unit saveFilter(File file, CuckooFilter filter)
Link copied to clipboard
public CacheManagerBuilder<PersistentCacheManager> setCache(CacheManagerBuilder<PersistentCacheManager> builder)

设置缓存

Link copied to clipboard
public final Long string2FilterKey(String str)