Reservoir
Link to reservoir
remove
Link to remove
名称 | Type |
---|---|
名称 レシピ名 | Type 文字列型 |
Example:
ZenScript Copy// mods.immersivepetroleum.ReservoirRegistry.remove(String recipeName);
mods.immersivepetroleum.ReservoirRegistry.remove("aquifer");
removeAll
Link to removeall
名称 | Type |
---|---|
名称 | Type |
Example:
ZenScript Copy// mods.immersivepetroleum.ReservoirRegistry.removeAll();
mods.immersivepetroleum.ReservoirRegistry.removeAll();
貯水池ビルダー
Link to 貯水池ビルダー
コンストラクター
Link to コンストラクター
名称 | Type |
---|---|
名称 Fluid | Type Fluidstack |
名称 Minimum Size | Type int |
名称 Maximum Size | Type int |
名称 Replenish Rate | Type int |
名称 Weight | Type int |
Weight
Link to weight
Weight is the Weighted Chance of a chunk containing that specific fluid reservoir. The weight is counted as in X in Total.
So if you have 5 Reservoir values at: 5, 5, 6, 8, 10
Then each respective entry will have a weighted chance of:
Copy5 in 34
5 in 34
6 in 34
8 in 34
10 in 34
Example:
ZenScript Copy// new mods.immersivepetroleum.ReservoirBuilder(IFluidStack fluid, int minSize, int maxSize, int traceAmount, int weight);
new mods.immimmsivetroleum.ReservoirBuilder(<fluid:minecraft:lava>, 1000, 5000, 0, 20);
addDimensions
Link to adddimensions
名称 | Type |
---|---|
名称 Blacklist | Type Boolean |
名称 寸法名 | Type String[] array |
Example:
ZenScript Copy// builderInstance.addDimensions(boolean isBlacklist, String[] dimensionNames);
builderInstance.addDimensions(false, ["minecraft:overworld"]);
addBiomes
Link to addbiomes
名称 | Type |
---|---|
名称 Blacklist | Type Boolean |
名称 バイオーム名 | Type String[] array |
Example:
ZenScript Copy// builderInstance.addBiomes(boolean isBlacklist, String[] biomeNames);
builderInstance.addBiomes(false, ["minecraft:plains"]);
build
Link to build
名称 | Type |
---|---|
名称 名称 | Type 文字列型 |
ベースリザーバーは翻訳されているように小文字です。カスタムリザーバーは適切に大文字にする必要があります(例:「ディープオーシャンオイル貯水池」)。
Example:
ZenScript Copy// builderInstance.build(String name);
builderInstance.build("Example Name");
コピー/貼り付け例:
ZenScript Copynew ReservoirBuilder(<fluid:minecraft:lava>, 25000, 100000, 0, 20)
.addDimensions(false, ["overworld"])
.addBiomes(false, ["minecraft:desert"])
.build("Desert Lava");