Interface BlockEntityTypeFactory

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 interface BlockEntityTypeFactory
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    BlockEntityTypeFactory.BlockEntitySupplier<T extends net.minecraft.world.level.block.entity.BlockEntity>
     
  • 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(BlockEntityTypeFactory.BlockEntitySupplier<T> factory, net.minecraft.world.level.block.Block... allowedBlocks)
     
  • Method Details

    • create

      <T extends net.minecraft.world.level.block.entity.BlockEntity> net.minecraft.world.level.block.entity.BlockEntityType<T> create(BlockEntityTypeFactory.BlockEntitySupplier<T> factory, net.minecraft.world.level.block.Block... allowedBlocks)