Reservoir
remove
| Name | Type |
|---|---|
Name Recipe Name | Type String |
Example:
// mods.immersivepetroleum.ReservoirRegistry.remove(String recipeName);
mods.immersivepetroleum.ReservoirRegistry.remove("aquifer");removeAll
| Name | Type |
|---|
Example:
// mods.immersivepetroleum.ReservoirRegistry.removeAll();
mods.immersivepetroleum.ReservoirRegistry.removeAll();Reservoir Builder
constructor
| Name | Type |
|---|---|
Name Fluid | Type Fluidstack |
Name Minimum Size | Type int |
Name Maximum Size | Type int |
Name Replenish Rate | Type int |
Name Weight | Type int |
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:
5 in 345 in 346 in 348 in 3410 in 34Example:
// new mods.immersivepetroleum.ReservoirBuilder(IFluidStack fluid, int minSize, int maxSize, int traceAmount, int weight);
new mods.immersivepetroleum.ReservoirBuilder(<fluid:minecraft:lava>, 1000, 5000, 0, 20);addDimensions
| Name | Type |
|---|---|
Name Blacklist | Type Boolean |
Name Dimension Names | Type String[] array |
Example:
// builderInstance.addDimensions(boolean isBlacklist, String[] dimensionNames);
builderInstance.addDimensions(false, ["minecraft:overworld"]);addBiomes
| Name | Type |
|---|---|
Name Blacklist | Type Boolean |
Name Biome Names | Type String[] array |
Example:
// builderInstance.addBiomes(boolean isBlacklist, String[] biomeNames);
builderInstance.addBiomes(false, ["minecraft:plains"]);build
| Name | Type |
|---|---|
Name Name | Type String |
Preface
The base reservoirs are lowercase as they are translated - custom ones should be properly capitalized (ex. “Deep Ocean Oil Reservoir”).
Example:
// builderInstance.build(String name);
builderInstance.build("Example Name");Copy/Paste example:
new ReservoirBuilder(<fluid:minecraft:lava>, 25000, 100000, 0, 20) .addDimensions(false, ["overworld"]) .addBiomes(false, ["minecraft:desert"]) .build("Desert Lava");