generated from CleanroomMC/TemplateDevEnv
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from Srdjan-V/develop
Update 2.0.0
- Loading branch information
Showing
51 changed files
with
1,694 additions
and
884 deletions.
There are no files selected for viewing
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
//Register an power tier | ||
var power = mods.tweakedMods.PowerTier.recipeBuilder() | ||
.capacity(5555555) | ||
.rft(5) | ||
.register() | ||
|
||
/* | ||
This method will register a reservoir with the chance to drain fluid from the chunk. | ||
If drainChance is set to 0.25 it will have a 25% chance to drain from the chunk | ||
If drainChance is set to 0.5 it will have a 50% chance to drain from the chunk | ||
If drainChance is set to 1 it will have a 100% chance to drain from the chunk, its the same as registering it normally | ||
*/ | ||
|
||
//Register an fluid reservoir | ||
mods.tweakedMods.FluidReservoir.recipeBuilder() | ||
.name("GroovyFluidReservoir") | ||
.fluid(fluid("lava")) | ||
.weight(80000) | ||
.powerTier(power) | ||
.minSize(50) | ||
.maxSize(1500) | ||
.pumpSpeed(10) | ||
.replenishRate(5) | ||
.register() | ||
|
||
//Remove the default IE water reservoir | ||
mods.tweakedMods.FluidReservoir.remove("water") | ||
|
||
//Modify the default IP lava reservoir | ||
mods.tweakedMods.FluidReservoir.get("lava").toBuilder() | ||
.drainChance(0.8).maxSize(Integer.MAX_VALUE).register() | ||
|
||
/* | ||
Groovy compat is located in 'io.github.srdjanv.tweakedpetroleum.common.compat.groovy' | ||
Also see https://cleanroommc.com/groovy-script/ | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip | ||
networkTimeout=10000 | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,22 @@ | ||
pluginManagement { | ||
repositories { | ||
gradlePluginPortal() | ||
maven { | ||
name 'FancyGradle' | ||
url 'https://gitlab.com/api/v4/projects/26758973/packages/maven' | ||
} | ||
maven { | ||
name 'ForgeGradle 5' | ||
url 'https://maven.minecraftforge.net' | ||
// RetroFuturaGradle | ||
name = "GTNH Maven" | ||
url = uri("http://jenkins.usrv.eu:8081/nexus/content/groups/public/") | ||
allowInsecureProtocol = true | ||
mavenContent { | ||
includeGroup("com.gtnewhorizons") | ||
includeGroup("com.gtnewhorizons.retrofuturagradle") | ||
} | ||
} | ||
gradlePluginPortal() | ||
mavenCentral() | ||
mavenLocal() | ||
} | ||
} | ||
|
||
plugins { | ||
// Automatic toolchain provisioning | ||
id("org.gradle.toolchains.foojay-resolver-convention") version "0.5.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...troleum/api/ihelpers/IPumpjackAddons.java → ...api/mixins/ITweakedPetPumpjackAddons.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
src/main/java/io/github/srdjanv/tweakedpetroleum/api/mixins/ITweakedPetReservoirType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package io.github.srdjanv.tweakedpetroleum.api.mixins; | ||
|
||
public interface ITweakedPetReservoirType extends ITweakedPetReservoirTypeGetters, ITweakedPetReservoirTypeSetters { | ||
|
||
} | ||
|
||
|
31 changes: 31 additions & 0 deletions
31
...n/java/io/github/srdjanv/tweakedpetroleum/api/mixins/ITweakedPetReservoirTypeGetters.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package io.github.srdjanv.tweakedpetroleum.api.mixins; | ||
|
||
import io.github.srdjanv.tweakedpetroleum.api.crafting.TweakedPumpjackHandler; | ||
|
||
public interface ITweakedPetReservoirTypeGetters { | ||
String getName(); | ||
|
||
String getStringFluid(); | ||
|
||
int getMinSize(); | ||
|
||
int getMaxSize(); | ||
|
||
int getReplenishRate(); | ||
|
||
int getPowerTier(); | ||
|
||
int getPumpSpeed(); | ||
|
||
float getDrainChance(); | ||
|
||
int[] getDimensionWhitelist(); | ||
|
||
int[] getDimensionBlacklist(); | ||
|
||
String[] getBiomeWhitelist(); | ||
|
||
String[] getBiomeBlacklist(); | ||
|
||
TweakedPumpjackHandler.ReservoirContent getReservoirContent(); | ||
} |
21 changes: 21 additions & 0 deletions
21
...n/java/io/github/srdjanv/tweakedpetroleum/api/mixins/ITweakedPetReservoirTypeSetters.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package io.github.srdjanv.tweakedpetroleum.api.mixins; | ||
|
||
import io.github.srdjanv.tweakedpetroleum.api.crafting.TweakedPumpjackHandler; | ||
|
||
public interface ITweakedPetReservoirTypeSetters { | ||
void setDimensionWhitelist(int[] dimWhitelist); | ||
|
||
void setDimensionBlacklist(int[] biomeBlacklistList); | ||
|
||
void setBiomeBlacklist(String[] dimBlacklist); | ||
|
||
void setBiomeWhitelist(String[] biomeWhitelistList); | ||
|
||
void setReservoirContent(TweakedPumpjackHandler.ReservoirContent reservoirContents); | ||
|
||
void setPowerTier(int i); | ||
|
||
void setPumpSpeed(int i); | ||
|
||
void setDrainChance(float f); | ||
} |
Oops, something went wrong.