Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Boilerplate Registry for Lists #234

Merged
merged 22 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from 17 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
2155dbd
make addBackup and addScripted return a boolean
WaitingIdly Jul 19, 2024
ed4370c
add boilerplate class for list registry
WaitingIdly Jul 19, 2024
bbfd4ac
use boilerplate list in relevant places
WaitingIdly Jul 19, 2024
f1c7b75
handle slightly special list cases
WaitingIdly Jul 19, 2024
2dfd7da
convert some new registries to StandardListRegistry
WaitingIdly Jul 24, 2024
be670b0
rename to getRecipes
WaitingIdly Aug 29, 2024
bd29a13
add some javadocs to relevant classes
WaitingIdly Aug 29, 2024
6c7a191
handle generics
WaitingIdly Aug 30, 2024
a67bccf
make better with mods heat an Entry-type
WaitingIdly Aug 30, 2024
6950a26
document add and remove methods for standard list
WaitingIdly Aug 30, 2024
a04c66a
fix class name pattern not including underscores
WaitingIdly Aug 30, 2024
4c9be25
dont print an empty line if no example text
WaitingIdly Aug 30, 2024
d005d79
update examples
WaitingIdly Aug 30, 2024
7f1987f
readd removal example for life essence
WaitingIdly Aug 30, 2024
e19990e
add more lists
WaitingIdly Aug 30, 2024
3fa4b85
explosion furnace example one line update
WaitingIdly Aug 30, 2024
0fd8725
use getRecipes() in valid places
WaitingIdly Aug 30, 2024
96efd1c
Merge branch 'master' into registry-list-boilerplate
WaitingIdly Aug 31, 2024
4c94703
convert relevant new registries to StandardListRegistry
WaitingIdly Aug 31, 2024
ccdfca5
update related examples
WaitingIdly Aug 31, 2024
fe5c241
only call getRecipes once for relevant SLR methods
WaitingIdly Aug 31, 2024
31b65c4
disable gradle properties
WaitingIdly Aug 31, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions examples/postInit/aether_legacy.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ mods.aether_legacy.accessory.recipeBuilder()
.register()



// Enchanter:
// Enchanting is a mechanic used to create new items, as well as repair tools, armor, and weapons, using the Altar block.

Expand All @@ -30,7 +29,6 @@ mods.aether_legacy.enchanter.recipeBuilder()
.register()



// Enchanter Fuel:
// By default, the Enchanter (Altar) takes Ambrosium Shards as fuel. Using GroovyScript, custom fuels can be added.

Expand All @@ -52,7 +50,6 @@ mods.aether_legacy.freezer.recipeBuilder()
.register()



// Freezer Fuel:
// By default, the Freezer takes Icestone as fuel. Using GroovyScript, custom fuels can be added.

Expand Down
3 changes: 0 additions & 3 deletions examples/postInit/alchemistry.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ mods.alchemistry.atomizer.recipeBuilder()
.register()



// Chemical Combiner:
// Converts up to 9 input itemstacks into an output itemstack.

Expand Down Expand Up @@ -110,7 +109,6 @@ mods.alchemistry.evaporator.recipeBuilder()
.register()



// Liquifier:
// Converts an input itemstack into an output fluidstack, consuming a set amount of power.

Expand All @@ -129,4 +127,3 @@ mods.alchemistry.liquifier.recipeBuilder()
.register()



5 changes: 0 additions & 5 deletions examples/postInit/astralsorcery.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ mods.astralsorcery.chalice_interaction.recipeBuilder()
.register()



// Constellation:
// Create a custom Constellation.

Expand Down Expand Up @@ -67,7 +66,6 @@ mods.astralsorcery.constellation.signatureItems()
.register()



// Fountain:
// Adds virtual aquifers that can be accessed via the Evershifting Fountain's Necromantic Prime.

Expand All @@ -82,7 +80,6 @@ mods.astralsorcery.fountain.chanceHelper()
.register()



// Grindstone:
// Converts an item into an itemstack with a chance of getting twice the amount after right clicking the grindstone based
// on weight.
Expand All @@ -105,7 +102,6 @@ mods.astralsorcery.grindstone.recipeBuilder()
.register()



// Infusion Altar:
// Consumes buckets of Liquid Starlight when interacted with by a Resonating Wand to convert input items into output
// itemstacks after a time.
Expand Down Expand Up @@ -180,7 +176,6 @@ mods.astralsorcery.lightwell.recipeBuilder()
.register()



// Perk Tree:
// Create a custom perk with a custom effect, at a given location.

Expand Down
1 change: 0 additions & 1 deletion examples/postInit/avaritia.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,3 @@ mods.avaritia.extreme_crafting.shapelessBuilder()
.register()



2 changes: 2 additions & 0 deletions examples/postInit/betterwithmods.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ mods.betterwithmods.crucible.recipeBuilder()
// Heat:
// Creates new levels or adds new blocks to old heat levels.

// mods.betterwithmods.heat.removeAll()

mods.betterwithmods.heat.add(4, item('minecraft:redstone_block'), item('minecraft:redstone_torch'))
mods.betterwithmods.heat.add(3, 'torch')

Expand Down
7 changes: 0 additions & 7 deletions examples/postInit/bloodmagic.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ mods.bloodmagic.alchemy_array.recipeBuilder()
.register()



// Alchemy Table:
// Converts up to 6 input items into an output itemstack, with configurable time, minimum tier of Blood Orb required, and
// Life Essence drained from the Orb network.
Expand All @@ -54,7 +53,6 @@ mods.bloodmagic.alchemy_table.recipeBuilder()
.register()



// Blood Altar:
// Converts an input item into an output itemstack, draining life essence from the altar at a base rate and requiring at
// least a specific tier.
Expand Down Expand Up @@ -82,7 +80,6 @@ mods.bloodmagic.blood_altar.recipeBuilder()
.register()



// Meteor:
// Throwing an input catalyst atop an activated Mark of the Falling Tower Ritual will spawn a meteor made of the given
// components, size, explosion strength, and Life Essence cost.
Expand Down Expand Up @@ -110,7 +107,6 @@ mods.bloodmagic.meteor.recipeBuilder()
.register()



// Sacrificial:
// How much Life Essence is gained when using the Sacrificial Dagger on a mob.

Expand All @@ -125,7 +121,6 @@ mods.bloodmagic.sacrificial.recipeBuilder()
.register()



// Tartaric Forge:
// Converts up to 4 input items into an output itemstack, requiring a Tartaric gem with a minimum amount of souls, and
// consuming some.
Expand All @@ -150,7 +145,6 @@ mods.bloodmagic.tartaric_forge.recipeBuilder()
.register()



// Tranquility:
// Blocks in the area around the Tranquility Altar provide tranquility up to the Altar's cap, with reduced effect the more
// of a particular type of Tranquility is provided.
Expand Down Expand Up @@ -178,4 +172,3 @@ mods.bloodmagic.tranquility.recipeBuilder()
.register()



8 changes: 0 additions & 8 deletions examples/postInit/botania.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ mods.botania.apothecary.recipeBuilder()
.register()



// Brew Effect:
// Creates a custom brew, but not a recipe for the brew.

Expand Down Expand Up @@ -66,11 +65,9 @@ mods.botania.elven_trade.recipeBuilder()
.register()



// Magnet:
// Add or remove items from the magnet blacklist.


mods.botania.magnet.addToBlacklist(item('minecraft:diamond'))

// Mana Infusion:
Expand All @@ -89,7 +86,6 @@ mods.botania.mana_infusion.recipeBuilder()
.register()



// Orechid:
// Converts stone blocks into one of a few ore blocks at the cost of mana.

Expand Down Expand Up @@ -127,7 +123,6 @@ mods.botania.pure_daisy.recipeBuilder()
.register()



// Rune Altar:
// Converts a items inputs into an item output at the cost of mana when a Livingrock item is thrown atop the altar and
// right clicked with a Wand of the Forest.
Expand All @@ -144,7 +139,6 @@ mods.botania.rune_altar.recipeBuilder()
.register()



// Lexicon Knowledge:
// Creates a new type of knowledge that Lexica Botania entries may be gated with. Can only be created.

Expand Down Expand Up @@ -194,5 +188,3 @@ mods.botania.entry.entryBuilder()
.register()




3 changes: 0 additions & 3 deletions examples/postInit/enderio.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ mods.enderio.enchanter.recipeBuilder()
.register()



// Fluid Coolant:
// Create a Coolant with a given coolant rate that produces power with a Fuel while in a Combustion Generator.

Expand Down Expand Up @@ -153,7 +152,6 @@ mods.enderio.slice_n_splice.recipeBuilder()
.register()



// Soulbinder:
// Converts an input itemstack into an output itemstack, requiring one of several entities in soul vials, using energy and
// giving XP. Must have a unique name. To function properly, the input entities must be allowed in Soul Vials.
Expand Down Expand Up @@ -206,7 +204,6 @@ mods.enderio.tank.recipeBuilder()
.register()



// Vat:
// Converts an input fluidstack into an output itemstack at a rate based on up 2 itemstack inputs, and using power. Can be
// set to require at least NORMAL or ENHANCED tiers, or to IGNORE the tier. NORMAL and IGNORE are effectively the same.
Expand Down
4 changes: 0 additions & 4 deletions examples/postInit/extendedcrafting.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ mods.extendedcrafting.combination_crafting.recipeBuilder()
.register()



// Compression Crafting:
// Converts any number of a single item into an output itemstack, with a configurable rf cost, consumption per tick amount,
// catalyst, and if the catalyst is consumed.
Expand All @@ -55,7 +54,6 @@ mods.extendedcrafting.compression_crafting.recipeBuilder()
.register()



// Ender Crafting:
// A normal crafting recipe, with the recipe being slowly crafted based on nearby Ender Alternators.

Expand Down Expand Up @@ -92,7 +90,6 @@ mods.extendedcrafting.ender_crafting.shapelessBuilder()
.register()



// Table Crafting:
// A normal crafting recipe, but requiring either a specific tier, or at least a given tier, from 3x3 to 9x9.

Expand Down Expand Up @@ -156,4 +153,3 @@ mods.extendedcrafting.table_crafting.shapelessBuilder()
.register()



1 change: 0 additions & 1 deletion examples/postInit/extrabotany.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,3 @@ mods.extrabotany.pedestal.recipeBuilder()
.register()



14 changes: 0 additions & 14 deletions examples/postInit/immersiveengineering.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ mods.immersiveengineering.alloy_kiln.recipeBuilder()
.register()



// Arc Furnace:
// Converts 1 input itemstack with up to 4 additional inputs into an output itemstack and an optional 'slag' itemstack,
// taking time and using rf power.
Expand All @@ -36,7 +35,6 @@ mods.immersiveengineering.arc_furnace.recipeBuilder()
.register()



// Blast Furnace:
// Converts an input itemstack into an output itemstack and an optional 'slag' itemstack, taking time and consuming fuel
// (based on Blast Furnace Fuels).
Expand All @@ -53,7 +51,6 @@ mods.immersiveengineering.blast_furnace.recipeBuilder()
.register()



// Blast Furnace Fuel:
// Allows an item to be used in the Blast Furnace as a fuel for the given number of ticks.

Expand All @@ -66,7 +63,6 @@ mods.immersiveengineering.blast_furnace_fuel.recipeBuilder()
.register()



// Blueprint Crafting:
// Converts any number of input itemstacks into an output itemstack, using a blueprint with the category nbt tag as a
// catalyst.
Expand All @@ -83,7 +79,6 @@ mods.immersiveengineering.blueprint_crafting.recipeBuilder()
.register()



// Bottling Machine:
// Converts an input itemstack and fluidstack into an output itemstack.

Expand All @@ -98,7 +93,6 @@ mods.immersiveengineering.bottling_machine.recipeBuilder()
.register()



// Coke Oven:
// Converts an input itemstack into an output itemstack over time, producing a given amount of creosote oil.

Expand All @@ -114,7 +108,6 @@ mods.immersiveengineering.coke_oven.recipeBuilder()
.register()



// Crusher:
// Converts an input itemstack into an output itemstack with optional additional chanced item outputs, consuming energy.

Expand All @@ -137,7 +130,6 @@ mods.immersiveengineering.crusher.recipeBuilder()
.register()



// Excavator:
// Adds a Mineral Mix with the given name, weight, fail chance, ores, and allowed dimensions. A Mineral Mix can be mined by
// an Excavator Multiblock and scanned via a Core Sample Drill.
Expand Down Expand Up @@ -165,7 +157,6 @@ mods.immersiveengineering.excavator.recipeBuilder()
.register()



// Fermenter:
// Converts an input itemstack into an output fluidstack with an optional output itemstack, consuming power.

Expand All @@ -181,7 +172,6 @@ mods.immersiveengineering.fermenter.recipeBuilder()
.register()



// Metal Press:
// Converts an input itemstack into an output itemstack, with a mold catalyst, consuming power.

Expand All @@ -200,7 +190,6 @@ mods.immersiveengineering.metal_press.recipeBuilder()
.register()



// Mixer:
// Converts any number of input itemstacks and a fluidstack into an output fluidstack, consuming power.

Expand All @@ -217,7 +206,6 @@ mods.immersiveengineering.mixer.recipeBuilder()
.register()



// Refinery:
// Converts 2 input fluidstacks into an output fluidstack, consuming power.

Expand All @@ -232,7 +220,6 @@ mods.immersiveengineering.refinery.recipeBuilder()
.register()



// Squeezer:
// Converts an input itemstack into either an output itemstack, fluidstack, or both, using energy.

Expand Down Expand Up @@ -261,4 +248,3 @@ mods.immersiveengineering.squeezer.recipeBuilder()
.register()



1 change: 0 additions & 1 deletion examples/postInit/industrialforegoing.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,3 @@ mods.industrialforegoing.straw.recipeBuilder()
.register()



1 change: 0 additions & 1 deletion examples/postInit/inspirations.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ mods.inspirations.anvil_smashing.recipeBuilder()
.register()



// Cauldron:
// Converts up to 1 itemstack and up to 1 fluid into up to 1 itemstack or up to 1 fluid, with a boiling boolean and
// variable amount of fluid consumed or produced.
Expand Down
2 changes: 0 additions & 2 deletions examples/postInit/pneumaticcraft.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ mods.pneumaticcraft.liquid_fuel.recipeBuilder()
.register()



// Plastic Mixer:
// Converts a fluidstack and an item with a variable damage value into each other, requiring temperature to operate the
// process, optionally consuming dye, and allowing either only melting or only solidifying.
Expand Down Expand Up @@ -212,4 +211,3 @@ mods.pneumaticcraft.xp_fluid.recipeBuilder()
.register()



Loading