Class FabricRegistration

java.lang.Object
net.nikdo53.tinymultiblocklib.platform.FabricRegistration
All Implemented Interfaces:
IRegistrationUtils

public class FabricRegistration extends Object implements IRegistrationUtils
  • Field Details

  • Constructor Details

    • FabricRegistration

      public FabricRegistration()
  • Method Details

    • registerBlockEntity

      public <T extends net.minecraft.world.level.block.entity.BlockEntity> Supplier<net.minecraft.world.level.block.entity.BlockEntityType<T>> registerBlockEntity(String name, BiFunction<net.minecraft.core.BlockPos, net.minecraft.world.level.block.state.BlockState, T> function, Set<net.minecraft.world.level.block.Block> blocks)
      Specified by:
      registerBlockEntity in interface IRegistrationUtils
    • registerBlockWithItem

      public <T extends net.minecraft.world.level.block.Block> Supplier<T> registerBlockWithItem(String name, Function<net.minecraft.world.level.block.state.BlockBehaviour.Properties, ? extends T> func, Supplier<net.minecraft.world.level.block.state.BlockBehaviour.Properties> properties)
      Specified by:
      registerBlockWithItem in interface IRegistrationUtils
    • registerBlockItem

      public <T extends net.minecraft.world.level.block.Block> Supplier<net.minecraft.world.item.Item> registerBlockItem(String name, Supplier<T> block)
      Specified by:
      registerBlockItem in interface IRegistrationUtils
    • addSupportedBEBlock

      public <T extends net.minecraft.world.level.block.entity.BlockEntity> void addSupportedBEBlock(Supplier<net.minecraft.world.level.block.entity.BlockEntityType<T>> blockEntityType, net.minecraft.world.level.block.Block block)
      Specified by:
      addSupportedBEBlock in interface IRegistrationUtils