gpt4 book ai didi

org.bukkit.configuration.file.YamlConfiguration.getLong()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-17 20:46:40 27 4
gpt4 key购买 nike

本文整理了Java中org.bukkit.configuration.file.YamlConfiguration.getLong()方法的一些代码示例,展示了YamlConfiguration.getLong()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YamlConfiguration.getLong()方法的具体详情如下:
包路径:org.bukkit.configuration.file.YamlConfiguration
类名称:YamlConfiguration
方法名:getLong

YamlConfiguration.getLong介绍

暂无

代码示例

代码示例来源:origin: com.greatmancode/tools

@Override
public long getLong(String path) {
  return configFile.getLong(path);
}

代码示例来源:origin: DevLeoko/AdvancedBan

@Override
public Long getLong(Object file, String path) {
  return ((YamlConfiguration) file).getLong(path);
}

代码示例来源:origin: DevLeoko/AdvancedBan

@Override
public long getLong(Object file, String path, long def) {
  return ((YamlConfiguration) file).getLong(path, def);
}

代码示例来源:origin: SkyWars/SkyWars

public long getSetLong(String path, long defaultInt) throws InvalidConfigurationException {
  if (config.isInt(path)) {
    return config.getLong(path);
  } else if (config.contains(path)) {
    throw new InvalidConfigurationException("Object " + config.get(path) + " found under " + path + " in file " + configFile.toAbsolutePath() + " is not a long");
  } else {
    logger.log(Level.INFO, "Setting {0} to {1} in file {2}", new Object[]{path, defaultInt, configFile});
    config.set(path, defaultInt);
    return defaultInt;
  }
}

代码示例来源:origin: mcMMO-Dev/mcMMO

public void load() {
  InputStreamReader reader = mcMMO.p.getResourceAsReader(fileName);
  if (reader != null) {
    config = YamlConfiguration.loadConfiguration(reader);
    chunkletsEnabled = config.getBoolean("Options.Chunklets", true);
    conversionRate = config.getInt("Options.ConversionRate", 1);
    useEnchantmentBuffs = config.getBoolean("Options.EnchantmentBuffs", true);
    uuidConvertAmount = config.getInt("Options.UUIDConvertAmount", 5);
    mojangRateLimit = config.getInt("Options.MojangRateLimit", 50000);
    mojangLimitPeriod = config.getLong("Options.MojangLimitPeriod", 600000);
  }
}

代码示例来源:origin: lucko/helper

.loadExecutor(new HelperLoadingExecutor())
.runExecutor(Schedulers.sync())
.pollRate(Ticks.to(config.getLong("poll-interval", 20L), TimeUnit.MILLISECONDS), TimeUnit.MILLISECONDS)
.initScript(config.getString("init-script", "init.js"))
.withBindings(new GeneralScriptBindings())

代码示例来源:origin: BigScary/GriefPrevention

out_parentID.add(yaml.getLong("Parent Claim ID", -1L));

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com