Class ConstructBuilderFabric

java.lang.Object
net.darkhax.bookshelf.impl.util.ConstructBuilderFabric
All Implemented Interfaces:
IConstructHelper

public class ConstructBuilderFabric extends Object implements IConstructHelper
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <T extends net.minecraft.world.level.block.entity.BlockEntity>
    Supplier<net.minecraft.world.level.block.entity.BlockEntityType<T>>
    blockEntityType(BiFunction<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState,T> factory, net.minecraft.world.level.block.Block... validBlocks)
     
    <T extends net.minecraft.world.inventory.AbstractContainerMenu>
    net.minecraft.world.inventory.MenuType<T>
    menuType(org.apache.commons.lang3.function.TriFunction<Integer,net.minecraft.world.entity.player.Inventory,net.minecraft.network.FriendlyByteBuf,T> constructor)
     
    net.minecraft.world.item.CreativeModeTab.DisplayItemsGenerator
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.darkhax.bookshelf.api.util.IConstructHelper

    blockEntityType
  • Constructor Details

    • ConstructBuilderFabric

      public ConstructBuilderFabric()
  • Method Details

    • blockEntityType

      public <T extends net.minecraft.world.level.block.entity.BlockEntity> Supplier<net.minecraft.world.level.block.entity.BlockEntityType<T>> blockEntityType(BiFunction<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState,T> factory, net.minecraft.world.level.block.Block... validBlocks)
      Specified by:
      blockEntityType in interface IConstructHelper
    • wrapDisplayGen

      public net.minecraft.world.item.CreativeModeTab.DisplayItemsGenerator wrapDisplayGen(IDisplayGenerator displayGen)
      Specified by:
      wrapDisplayGen in interface IConstructHelper