Interface IRegistriesHelper

All Known Implementing Classes:
NeoForgeRegistriesHelper

public interface IRegistriesHelper
  • Method Summary

    Modifier and Type
    Method
    Description
    <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)
     
    void
    openMenuData(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.MenuProvider provider, net.minecraft.core.BlockPos pos)
     
  • Method Details

    • create

      <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)
    • createMenu

      <T extends net.minecraft.world.inventory.AbstractContainerMenu> net.minecraft.world.inventory.MenuType<T> createMenu(BiFunction<Integer,net.minecraft.world.entity.player.Inventory,T> function)
    • createMenuData

      <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)
    • openMenuData

      void openMenuData(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.MenuProvider provider, net.minecraft.core.BlockPos pos)