-
Notifications
You must be signed in to change notification settings - Fork 34
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 #199 from P3pp3rF1y/1.18.x-dev
Release merge
- Loading branch information
Showing
34 changed files
with
495 additions
and
246 deletions.
There are no files selected for viewing
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
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
11 changes: 11 additions & 0 deletions
11
src/main/java/net/p3pp3rf1y/sophisticatedcore/upgrades/IUpgradeCountLimitConfig.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,11 @@ | ||
package net.p3pp3rf1y.sophisticatedcore.upgrades; | ||
|
||
import net.minecraft.resources.ResourceLocation; | ||
|
||
import javax.annotation.Nullable; | ||
|
||
public interface IUpgradeCountLimitConfig { | ||
int getMaxUpgradesPerStorage(String storageType, @Nullable ResourceLocation upgradeRegistryName); | ||
|
||
int getMaxUpgradesInGroupPerStorage(String storageType, UpgradeGroup upgradeGroup); | ||
} |
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
31 changes: 31 additions & 0 deletions
31
src/main/java/net/p3pp3rf1y/sophisticatedcore/upgrades/UpgradeGroup.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 net.p3pp3rf1y.sophisticatedcore.upgrades; | ||
|
||
public final class UpgradeGroup { | ||
|
||
public static final UpgradeGroup NONE = new UpgradeGroup("none", "none", true); | ||
private final String name; | ||
private final String translName; | ||
private final boolean isSolo; | ||
|
||
public UpgradeGroup(String name, String translName) { | ||
this(name, translName, false); | ||
} | ||
|
||
private UpgradeGroup(String name, String translName, boolean isSolo) { | ||
this.name = name; | ||
this.translName = translName; | ||
this.isSolo = isSolo; | ||
} | ||
|
||
public String name() { | ||
return name; | ||
} | ||
|
||
public String translName() { | ||
return translName; | ||
} | ||
|
||
public boolean isSolo() { | ||
return isSolo; | ||
} | ||
} |
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
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
Oops, something went wrong.