ItemSettings

public class ItemSettings extends SimpleYAMLConfig

Properties

Link copied to clipboard
private final ConfigurationSection config
Link copied to clipboard
private final File configPath
Link copied to clipboard
private final String defaultPath
Link copied to clipboard
public final static ItemSettings INSTANCE
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
private String readme
Link copied to clipboard
Link copied to clipboard
private Long updateTime

Functions

Link copied to clipboard
public final CacheStats getCacheStats()
Link copied to clipboard
public final ConfigurationSection getConfig()
Link copied to clipboard
public final File getConfigPath()
Link copied to clipboard
public final String getDefaultPath()
Link copied to clipboard
public final BaseSetting getMatchedSetting(ItemStack item)
Link copied to clipboard
public final String getNbt_cache_path()
Link copied to clipboard
public final String getReadme()
Link copied to clipboard
public final BaseSetting getSetting(String key)

public final BaseSetting getSetting(ItemStack item)

获取物品对应的设置,具有三级缓存

Link copied to clipboard
public final <Error class: unknown class> getSettingKeys()
Link copied to clipboard
public final <Error class: unknown class> getSettingNullable(String key)
Link copied to clipboard
public final <Error class: unknown class> getSettingsName()
Link copied to clipboard
public final Boolean getUpdateNotify()
Link copied to clipboard
public final Long getUpdateTime()
Link copied to clipboard
public final Boolean isAutoUpdate()
Link copied to clipboard
public final Unit load(Boolean notify)
Link copied to clipboard
public final Unit loadAsync(Boolean notify)
Link copied to clipboard
public Unit onLoaded(ConfigurationSection section)
Link copied to clipboard
public Unit onSaved(ConfigurationSection section)
Link copied to clipboard
public final Unit putSetting(String key, BaseSetting setting)
Link copied to clipboard
public final Unit save(Boolean notify)
Link copied to clipboard
public final Unit saveAsync(Boolean notify)
Link copied to clipboard
public final Unit saveYaml()
Link copied to clipboard
public final Unit setAutoUpdate(Boolean isAutoUpdate)
Link copied to clipboard
public final Unit setNbt_cache_path(String nbt_cache_path)
Link copied to clipboard
public final Unit setReadme(String readme)
Link copied to clipboard
public final Unit setSettingCache(ItemStack item, BaseSetting setting)
Link copied to clipboard
public final Unit setUpdate(Boolean enable)
Link copied to clipboard
public final Unit setUpdateNotify(Boolean updateNotify)
Link copied to clipboard
public final Unit setUpdateTime(Long updateTime)