File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
src/main/java/net/neganote/monilabs/common/item Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 22
33
44import com .gregtechceu .gtceu .api .GTValues ;
5+ import com .gregtechceu .gtceu .api .item .IComponentItem ;
56import com .gregtechceu .gtceu .api .item .component .ElectricStats ;
7+ import com .gregtechceu .gtceu .api .item .component .IItemComponent ;
68import com .tterrag .registrate .util .entry .ItemEntry ;
9+ import com .tterrag .registrate .util .nullness .NonNullConsumer ;
710import net .neganote .monilabs .MoniLabsMod ;
8-
9- import static com .gregtechceu .gtceu .common .data .GTItems .attach ;
1011import static net .neganote .monilabs .MoniLabsMod .REGISTRATE ;
1112
1213public class MoniItems {
@@ -23,4 +24,9 @@ public class MoniItems {
2324 .register ();
2425
2526 public static void init () {}
27+
28+ // Copied from GTItems
29+ public static <T extends IComponentItem > NonNullConsumer <T > attach (IItemComponent ... components ) {
30+ return item -> item .attachComponents (components );
31+ }
2632}
You can’t perform that action at this time.
0 commit comments