File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/main/java/games/moegirl/sinocraft/sinocore/api/injectable
test/src/main/java/games/moegirl/sinocraft/sinocore_test/registry Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11package games .moegirl .sinocraft .sinocore .api .injectable ;
22
33import net .minecraft .world .item .CreativeModeTab ;
4- import net .minecraft .world .item .Item ;
54import net .minecraft .world .item .ItemStack ;
5+ import net .minecraft .world .level .ItemLike ;
66
77import java .util .Objects ;
88import java .util .function .Supplier ;
99
1010public interface ISinoCreativeModeTab_Builder {
11- default CreativeModeTab .Builder sino$icon (Supplier <Item > icon ) {
11+ default CreativeModeTab .Builder sino$icon (Supplier <Supplier <? extends ItemLike > > icon ) {
1212 Objects .requireNonNull (icon );
13- return ((CreativeModeTab .Builder ) this ).icon (() -> new ItemStack (icon .get ()));
13+ return ((CreativeModeTab .Builder ) this ).icon (() -> new ItemStack (icon .get (). get () ));
1414 }
1515}
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ public static void registerAll() {
4646
4747 private static void register () {
4848 TEST_TAB = TABS .register ("sinocore_test_tab" , builder -> {
49- builder .sino$icon (() -> TestRegistry .TEST_ITEM_TAB_1 . get () );
49+ builder .sino$icon (() -> TestRegistry .TEST_ITEM_TAB_1 );
5050 });
5151
5252 TEST_ITEM_TAB_1 = ITEMS .register ("test_item_tab_1" , () -> new Item (new Item .Properties ().sino$tab (TEST_TAB )));
You can’t perform that action at this time.
0 commit comments