Interface RegistryHelpers.BlockEntityFactory<T extends net.minecraft.world.level.block.entity.BlockEntity>

Enclosing class:
RegistryHelpers
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface RegistryHelpers.BlockEntityFactory<T extends net.minecraft.world.level.block.entity.BlockEntity>
  • Method Summary

    Modifier and Type
    Method
    Description
    create(net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState)
     
  • Method Details

    • create

      @NotNull T create(net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState)
      Parameters:
      blockPos - The position of the block entity.
      blockState - The state of the block the BlockEntity will be attached to.
      Returns:
      The created block entity.