接口 BlockEntityType.BlockEntityFactory<T extends BlockEntity>

  • 封闭类:
    BlockEntityType<T extends BlockEntity>
    函数接口:
    这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

    @FunctionalInterface
    static interface BlockEntityType.BlockEntityFactory<T extends BlockEntity>
    Mappings:
    Namespace Name
    official chr$a
    intermediary net/minecraft/class_2591$class_5559
    named net/minecraft/block/entity/BlockEntityType$BlockEntityFactory
    • 方法详细资料

      • create

        T create​(BlockPos pos,
                 BlockState state)
        Mappings:
        Namespace Name Mixin selector
        official create Lchr$a;create(Lgb;Lcjr;)Lchp;
        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;