Class NeoForgeRegistriesHelper
java.lang.Object
net.tearpelato.craftcorelib.platform.NeoForgeRegistriesHelper
- All Implemented Interfaces:
IRegistriesHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends net.minecraft.world.level.block.entity.BlockEntity>
net.minecraft.world.level.block.entity.BlockEntityType<T> create(BiFunction<net.minecraft.core.BlockPos, net.minecraft.world.level.block.state.BlockState, T> factory, Supplier<net.minecraft.world.level.block.Block[]> blocks) <T extends net.minecraft.world.inventory.AbstractContainerMenu>
net.minecraft.world.inventory.MenuType<T> createMenu(BiFunction<Integer, net.minecraft.world.entity.player.Inventory, T> function) <T extends net.minecraft.world.inventory.AbstractContainerMenu>
net.minecraft.world.inventory.MenuType<T> createMenuData(org.apache.commons.lang3.function.TriFunction<Integer, net.minecraft.world.entity.player.Inventory, net.minecraft.network.FriendlyByteBuf, T> function) voidopenMenuData(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.MenuProvider provider, net.minecraft.core.BlockPos pos)
-
Constructor Details
-
NeoForgeRegistriesHelper
public NeoForgeRegistriesHelper()
-
-
Method Details
-
create
public <T extends net.minecraft.world.level.block.entity.BlockEntity> net.minecraft.world.level.block.entity.BlockEntityType<T> create(BiFunction<net.minecraft.core.BlockPos, net.minecraft.world.level.block.state.BlockState, T> factory, Supplier<net.minecraft.world.level.block.Block[]> blocks) - Specified by:
createin interfaceIRegistriesHelper
-
createMenu
public <T extends net.minecraft.world.inventory.AbstractContainerMenu> net.minecraft.world.inventory.MenuType<T> createMenu(BiFunction<Integer, net.minecraft.world.entity.player.Inventory, T> function) - Specified by:
createMenuin interfaceIRegistriesHelper
-
createMenuData
public <T extends net.minecraft.world.inventory.AbstractContainerMenu> net.minecraft.world.inventory.MenuType<T> createMenuData(org.apache.commons.lang3.function.TriFunction<Integer, net.minecraft.world.entity.player.Inventory, net.minecraft.network.FriendlyByteBuf, T> function) - Specified by:
createMenuDatain interfaceIRegistriesHelper
-
openMenuData
public void openMenuData(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.MenuProvider provider, net.minecraft.core.BlockPos pos) - Specified by:
openMenuDatain interfaceIRegistriesHelper
-