Interface BlockEntityType.BlockEntityFactory<T extends BlockEntity>

Enclosing class:
BlockEntityType<T extends BlockEntity>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface private static interface BlockEntityType.BlockEntityFactory<T extends BlockEntity>
A functional interface for a factory that creates a new block entity instance. This is usually not implemented directly; the block entity class's constructor (such as MyBlockEntity::MyBlockEntity) can be used as the implementation.
Mappings:
Namespace Name
official cwn$a
intermediary net/minecraft/class_2591$class_5559
named net/minecraft/block/entity/BlockEntityType$BlockEntityFactory
  • Method Summary

    Modifier and Type
    Method
    Description
    create(BlockPos pos, BlockState state)
     
  • Method Details

    • create

      T create(BlockPos pos, BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official create Lcwn$a;create(Lgp;Lcyt;)Lcwl;
      intermediary create Lnet/minecraft/class_2591$class_5559;create(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Lnet/minecraft/class_2586;
      named create Lnet/minecraft/block/entity/BlockEntityType$BlockEntityFactory;create(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/entity/BlockEntity;