generated from CleanroomMC/TemplateDevEnv
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Examples Configs GHA fixes #1
- Loading branch information
Showing
8 changed files
with
126 additions
and
73 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 was deleted.
Oops, something went wrong.
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,50 @@ | ||
import mods.TweakedLib.TweakedPowerTier; | ||
import mods.TweakedExcavation.TweakedExcavator; | ||
import mods.TweakedExcavation.TweakedMineral; | ||
|
||
/* | ||
TweakedExcavator.addMineral(String name, int mineralWeight, float failChance, String[] ores, float[] chances, int powerTier, | ||
@Optional int[] dimBlacklist, @Optional int[] dimWhitelist) | ||
ores Syntax: | ||
"OreDict Item" - this will used the default IE method of searching | ||
"ModID:OreDict Item" - This will search for a oredict item/block of a specific mod | ||
"ModID:Mod Item" - this will search for items/blocks from a mod | ||
"ModID:Mod Item:Metadata" this will search for items/blocks from a mod with metadata | ||
"minecraft:oreIron" - will get minecraft's oredict version of iron | ||
"minecraft:woolYellow" - will get minecraft's oredict version of yellow wool | ||
"minecraft:wool:14" - will get minecraft's wool with metadata 13 (red wool) | ||
TweakedExcavator.addMineralWithCustomYield(String name, int mineralWeight, float failChance, String[] ores, float[] chances, int powerTier, int oreYield, | ||
@Optional int[] dimBlacklist, @Optional int[] dimWhitelist) | ||
oreYield - is the size of the mineral vein | ||
TweakedPowerTier.registerPowerTier(int capacity, int rft) | ||
*/ | ||
|
||
var powerTier = TweakedPowerTier.registerPowerTier(64000, 4096); | ||
TweakedExcavator.addMineral("Test1", 2000000, 0.0,["minecraft:oreIron", "minecraft:wool:14", "immersiveengineering:connector:0"] ,[1.0,1.0,1.0], powerTier); | ||
|
||
var powerTier2 = TweakedPowerTier.registerPowerTier(640000, 40960); | ||
TweakedExcavator.addMineralWithCustomYield("Test2", 2000000, 0.0,["minecraft:oreIron", "minecraft:woolYellow", "immersiveengineering:connector:0"] ,[1.0,1.0,1.0], powerTier2, 1000000); | ||
|
||
/* | ||
mods.TweakedExcavation.TweakedMineral is used for modifying default IE minerals and custom ones | ||
available fields: | ||
-powerTier | ||
-yield | ||
A TweakedMineral object can be obtained with this method: | ||
TweakedExcavator.getTweakedMineral(String name); | ||
*/ | ||
|
||
var powerTier3 = TweakedPowerTier.registerPowerTier(6400000080000, 4096000); | ||
var mineral1 = TweakedExcavator.getTweakedMineral("Test1"); | ||
mineral1.powerTier = powerTier3; | ||
|
||
var mineral2 = TweakedExcavator.getTweakedMineral("Test2"); | ||
mineral2.yield = 180; |
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
28 changes: 28 additions & 0 deletions
28
src/main/java/srki2k/tweakedexcavation/common/DefaultMineralPower.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,28 @@ | ||
package srki2k.tweakedexcavation.common; | ||
|
||
import srki2k.tweakedlib.api.powertier.PowerTierHandler; | ||
|
||
public class DefaultMineralPower { | ||
|
||
public static DefaultMineralPower instance; | ||
|
||
public static DefaultMineralPower getInstance() { | ||
if (instance == null) { | ||
instance = new DefaultMineralPower(); | ||
} | ||
return instance; | ||
} | ||
private DefaultMineralPower() { | ||
powerTier = PowerTierHandler.registerPowerTier( | ||
Configs.TPConfig.DefaultExcavatorPowerTiers.capacity, | ||
Configs.TPConfig.DefaultExcavatorPowerTiers.rft | ||
); | ||
} | ||
|
||
private final int powerTier; | ||
|
||
public int getPowerTier() { | ||
return powerTier; | ||
} | ||
|
||
} |
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