接口 BlockEntityTicker<T extends BlockEntity>

  • 函数接口:
    这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

    @FunctionalInterface
    public interface BlockEntityTicker<T extends BlockEntity>
    Mappings:
    Namespace Name
    official chq
    intermediary net/minecraft/class_5558
    named net/minecraft/block/entity/BlockEntityTicker
    • 方法详细资料

      • tick

        void tick​(World world,
                  BlockPos pos,
                  BlockState state,
                  T blockEntity)
        Runs this action on the given block entity. The world, block position, and block state are passed as context.
        Mappings:
        Namespace Name Mixin selector
        official tick Lchq;tick(Lbvr;Lgb;Lcjr;Lchp;)V
        intermediary tick Lnet/minecraft/class_5558;tick(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2586;)V
        named tick Lnet/minecraft/block/entity/BlockEntityTicker;tick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/BlockEntity;)V