Skip to content

Commit

Permalink
[24w12a] Initial port
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMCLoveMan committed Mar 21, 2024
1 parent 481a890 commit 148c0ad
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 16 deletions.
8 changes: 1 addition & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,7 @@ sourceSets.main.resources { srcDir 'src/generated/resources' }

repositories {
mavenLocal()
maven {
name 'Maven for PR #715' // https://github.com/neoforged/NeoForge/pull/715
url 'https://prmaven.neoforged.net/NeoForge/pr715'
content {
includeModule('net.neoforged', 'neoforge')
}
}
maven { url 'https://nexus.themcbrothers.net/repository/maven-mod-dependencies/' }
}

dependencies {
Expand Down
8 changes: 4 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ mod_credits=Some stuff inspired by JEI, Mekanism, Mantle
mod_authors=TheMCBrothers
mod_description=Library Mod for mods by TheMCBrothers.

minecraft_version=24w11a
minecraft_version_range=24w11a
minecraft_version=24w12a
minecraft_version_range=24w12a

neo_version=20.5.0-alpha.24w11a.20240318.171240
neo_version_range=20.5.0-alpha.24w11a.20240318.171240
neo_version=20.5.0-alpha.24w12a.20240321.204905
neo_version_range=20.5.0-alpha.24w12a.20240321.204905
loader_version_range=[2,)

maven_name=themcbroslib
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// 24w11a 2024-03-19T23:09:22.4735694 Tags for minecraft:block mod id tmcb_lib
// 24w12a 2024-03-21T22:00:58.5008337 Tags for minecraft:block mod id tmcb_lib
a7909c7163d85f8e0b928c566fc0f89cc89e9b04 data/tmcb_lib/tags/blocks/wrenchable.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// 24w11a 2024-03-19T23:09:22.4755774 Recipes
// 24w12a 2024-03-21T22:00:58.5018337 Recipes
d248c5232893b08a0d5830d0f2f575fd11fe9f3a data/minecraft/advancements/recipes/root.json
53d9f9b70d55f152183f532b9931285735ecdfeb data/tmcb_lib/advancements/recipes/tools/wrench.json
2a57bb6d5b5a3b258e98a4dc3059c674812848ca data/tmcb_lib/recipes/wrench.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package net.themcbrothers.lib.crafting;

import net.minecraft.core.RegistryAccess;
import net.minecraft.core.HolderLookup;
import net.minecraft.world.Container;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.crafting.Recipe;
Expand All @@ -12,8 +12,8 @@
*/
public interface CommonRecipe<C extends Container> extends Recipe<C> {
@Override
default ItemStack assemble(C container, RegistryAccess registryAccess) {
return getResultItem(registryAccess).copy();
default ItemStack assemble(C container, HolderLookup.Provider provider) {
return getResultItem(provider).copy();
}

/**
Expand Down

0 comments on commit 148c0ad

Please sign in to comment.