diff --git a/src/main/java/kasuga/lib/registrations/common/BlockReg.java b/src/main/java/kasuga/lib/registrations/common/BlockReg.java index 77987f6f..937577ee 100644 --- a/src/main/java/kasuga/lib/registrations/common/BlockReg.java +++ b/src/main/java/kasuga/lib/registrations/common/BlockReg.java @@ -31,6 +31,7 @@ import java.util.ArrayList; import java.util.List; +import java.util.function.BiFunction; import java.util.function.Supplier; @@ -287,6 +288,13 @@ public BlockReg withItem(ItemReg.ItemBuilder builder, Res return this; } + @Optional + public BlockReg withItem(BiFunction builder, ResourceLocation itemModelLocation) { + itemReg = new ItemReg(registrationKey, itemModelLocation); + itemReg.itemType((p)->builder.apply(this.registryObject.get(),p)); + return this; + } + /** * Is your item renderer by your custom renderer? If you want to create a custom rendered item, see * {@link kasuga.lib.core.base.CustomRenderedItem}