Skip to content

Commit 2724758

Browse files
committed
include method override info for vanilla
1 parent ceda276 commit 2724758

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

examples/postInit/minecraft.groovy

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ mods.minecraft.command.registerCommand('groovy_test', { server, sender, args ->
1313
// A normal crafting recipe that takes place in the Vanilla Crafting Table, converting up to 9 items in a shapeless or
1414
// specific shaped arrangement into an output itemstack.
1515

16+
mods.minecraft.crafting.remove(resource('minecraft:stonebrick'))
17+
mods.minecraft.crafting.remove('minecraft:mossy_stonebrick')
1618
mods.minecraft.crafting.removeByOutput(item('minecraft:gold_ingot'))
1719
// mods.minecraft.crafting.removeAll()
1820

src/main/java/com/cleanroommc/groovyscript/compat/vanilla/Crafting.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@
2020
@Admonition(type = Admonition.Type.TIP, value = "groovyscript.wiki.minecraft.crafting.note0"),
2121
@Admonition(type = Admonition.Type.NOTE, value = "groovyscript.wiki.minecraft.crafting.note1"),
2222
@Admonition(type = Admonition.Type.TIP, value = "groovyscript.wiki.minecraft.crafting.note2"),
23-
})
23+
}, override = @MethodOverride(method = {
24+
@MethodDescription(method = "remove(Lnet/minecraft/util/ResourceLocation;)V", example = @Example("resource('minecraft:stonebrick')")),
25+
@MethodDescription(method = "remove(Ljava/lang/String;)V", example = @Example("'minecraft:mossy_stonebrick'")),
26+
}))
2427
public class Crafting extends ForgeRegistryWrapper<IRecipe> {
2528

2629
private static final Char2ObjectOpenHashMap<IIngredient> fallbackChars = new Char2ObjectOpenHashMap<>();

0 commit comments

Comments
 (0)