类 ComposterBlock

    • 字段详细资料

      • field_31071

        public static final int field_31071
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official a Lbzu;a:I
        intermediary field_31071 Lnet/minecraft/class_3962;field_31071:I
        named field_31071 Lnet/minecraft/block/ComposterBlock;field_31071:I
      • field_31072

        public static final int field_31072
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official b Lbzu;b:I
        intermediary field_31072 Lnet/minecraft/class_3962;field_31072:I
        named field_31072 Lnet/minecraft/block/ComposterBlock;field_31072:I
      • field_31073

        public static final int field_31073
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official c Lbzu;c:I
        intermediary field_31073 Lnet/minecraft/class_3962;field_31073:I
        named field_31073 Lnet/minecraft/block/ComposterBlock;field_31073:I
      • LEVEL

        public static final IntProperty LEVEL
        Mappings:
        Namespace Name Mixin selector
        official d Lbzu;d:Lckr;
        intermediary field_17565 Lnet/minecraft/class_3962;field_17565:Lnet/minecraft/class_2758;
        named LEVEL Lnet/minecraft/block/ComposterBlock;LEVEL:Lnet/minecraft/state/property/IntProperty;
      • ITEM_TO_LEVEL_INCREASE_CHANCE

        public static final Object2FloatMap<ItemConvertible> ITEM_TO_LEVEL_INCREASE_CHANCE
        Mappings:
        Namespace Name Mixin selector
        official e Lbzu;e:Lit/unimi/dsi/fastutil/objects/Object2FloatMap;
        intermediary field_17566 Lnet/minecraft/class_3962;field_17566:Lit/unimi/dsi/fastutil/objects/Object2FloatMap;
        named ITEM_TO_LEVEL_INCREASE_CHANCE Lnet/minecraft/block/ComposterBlock;ITEM_TO_LEVEL_INCREASE_CHANCE:Lit/unimi/dsi/fastutil/objects/Object2FloatMap;
      • field_31074

        private static final int field_31074
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official f Lbzu;f:I
        intermediary field_31074 Lnet/minecraft/class_3962;field_31074:I
        named field_31074 Lnet/minecraft/block/ComposterBlock;field_31074:I
      • RAY_TRACE_SHAPE

        private static final VoxelShape RAY_TRACE_SHAPE
        Mappings:
        Namespace Name Mixin selector
        official g Lbzu;g:Ldmt;
        intermediary field_17567 Lnet/minecraft/class_3962;field_17567:Lnet/minecraft/class_265;
        named RAY_TRACE_SHAPE Lnet/minecraft/block/ComposterBlock;RAY_TRACE_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
      • LEVEL_TO_COLLISION_SHAPE

        private static final VoxelShape[] LEVEL_TO_COLLISION_SHAPE
        Mappings:
        Namespace Name Mixin selector
        official h Lbzu;h:[Ldmt;
        intermediary field_17568 Lnet/minecraft/class_3962;field_17568:[Lnet/minecraft/class_265;
        named LEVEL_TO_COLLISION_SHAPE Lnet/minecraft/block/ComposterBlock;LEVEL_TO_COLLISION_SHAPE:[Lnet/minecraft/util/shape/VoxelShape;
    • 构造器详细资料

      • ComposterBlock

        public ComposterBlock​(AbstractBlock.Settings settings)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lcjq;<init>(Lcjq$c;)V
        intermediary <init> Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)V
        named <init> Lnet/minecraft/block/AbstractBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;)V
    • 方法详细资料

      • registerDefaultCompostableItems

        public static void registerDefaultCompostableItems()
        Mappings:
        Namespace Name Mixin selector
        official c Lbzu;c()V
        intermediary method_17758 Lnet/minecraft/class_3962;method_17758()V
        named registerDefaultCompostableItems Lnet/minecraft/block/ComposterBlock;registerDefaultCompostableItems()V
      • registerCompostableItem

        private static void registerCompostableItem​(float levelIncreaseChance,
                                                    ItemConvertible item)
        Mappings:
        Namespace Name Mixin selector
        official a Lbzu;a(FLbvq;)V
        intermediary method_17753 Lnet/minecraft/class_3962;method_17753(FLnet/minecraft/class_1935;)V
        named registerCompostableItem Lnet/minecraft/block/ComposterBlock;registerCompostableItem(FLnet/minecraft/item/ItemConvertible;)V
      • playEffects

        public static void playEffects​(World world,
                                       BlockPos pos,
                                       boolean fill)
        Mappings:
        Namespace Name Mixin selector
        official a Lbzu;a(Lbvr;Lgb;Z)V
        intermediary method_18027 Lnet/minecraft/class_3962;method_18027(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Z)V
        named playEffects Lnet/minecraft/block/ComposterBlock;playEffects(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Z)V
      • getOutlineShape

        public VoxelShape getOutlineShape​(BlockState state,
                                          BlockView world,
                                          BlockPos pos,
                                          ShapeContext context)
        覆盖:
        getOutlineShape 在类中 AbstractBlock
        Mappings:
        Namespace Name Mixin selector
        official a Lcjq;a(Lcjr;Lbuv;Lgb;Ldmf;)Ldmt;
        intermediary method_9530 Lnet/minecraft/class_4970;method_9530(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_3726;)Lnet/minecraft/class_265;
        named getOutlineShape Lnet/minecraft/block/AbstractBlock;getOutlineShape(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/ShapeContext;)Lnet/minecraft/util/shape/VoxelShape;
      • getRaycastShape

        public VoxelShape getRaycastShape​(BlockState state,
                                          BlockView world,
                                          BlockPos pos)
        覆盖:
        getRaycastShape 在类中 AbstractBlock
        Mappings:
        Namespace Name Mixin selector
        official a Lcjq;a(Lcjr;Lbuv;Lgb;)Ldmt;
        intermediary method_9584 Lnet/minecraft/class_4970;method_9584(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Lnet/minecraft/class_265;
        named getRaycastShape Lnet/minecraft/block/AbstractBlock;getRaycastShape(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/shape/VoxelShape;
      • getCollisionShape

        public VoxelShape getCollisionShape​(BlockState state,
                                            BlockView world,
                                            BlockPos pos,
                                            ShapeContext context)
        覆盖:
        getCollisionShape 在类中 AbstractBlock
        Mappings:
        Namespace Name Mixin selector
        official c Lcjq;c(Lcjr;Lbuv;Lgb;Ldmf;)Ldmt;
        intermediary method_9549 Lnet/minecraft/class_4970;method_9549(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_3726;)Lnet/minecraft/class_265;
        named getCollisionShape Lnet/minecraft/block/AbstractBlock;getCollisionShape(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/ShapeContext;)Lnet/minecraft/util/shape/VoxelShape;
      • onBlockAdded

        public void onBlockAdded​(BlockState state,
                                 World world,
                                 BlockPos pos,
                                 BlockState oldState,
                                 boolean notify)
        覆盖:
        onBlockAdded 在类中 AbstractBlock
        Mappings:
        Namespace Name Mixin selector
        official b Lcjq;b(Lcjr;Lbvr;Lgb;Lcjr;Z)V
        intermediary method_9615 Lnet/minecraft/class_4970;method_9615(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Z)V
        named onBlockAdded Lnet/minecraft/block/AbstractBlock;onBlockAdded(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Z)V
      • onUse

        public ActionResult onUse​(BlockState state,
                                  World world,
                                  BlockPos pos,
                                  PlayerEntity player,
                                  Hand hand,
                                  BlockHitResult hit)
        Called when this block is used by a player. This, by default, is bound to using the right mouse button.

        This method is called on both the logical client and logical server, so take caution when overriding this method. The logical side can be checked using world.isClient().

        If the action result is successful on a logical client, then the action will be sent to the logical server for processing.

        覆盖:
        onUse 在类中 AbstractBlock
        返回:
        an action result that specifies if using the block was successful.
        Mappings:
        Namespace Name Mixin selector
        official a Lcjq;a(Lcjr;Lbvr;Lgb;Lbjf;Larf;Ldlw;)Larg;
        intermediary method_9534 Lnet/minecraft/class_4970;method_9534(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;Lnet/minecraft/class_3965;)Lnet/minecraft/class_1269;
        named onUse Lnet/minecraft/block/AbstractBlock;onUse(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;Lnet/minecraft/util/hit/BlockHitResult;)Lnet/minecraft/util/ActionResult;
      • compost

        public static BlockState compost​(BlockState state,
                                         ServerWorld world,
                                         ItemStack stack,
                                         BlockPos pos)
        Mappings:
        Namespace Name Mixin selector
        official a Lbzu;a(Lcjr;Labj;Lbpr;Lgb;)Lcjr;
        intermediary method_26373 Lnet/minecraft/class_3962;method_26373(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_1799;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;
        named compost Lnet/minecraft/block/ComposterBlock;compost(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
      • emptyFullComposter

        public static BlockState emptyFullComposter​(BlockState state,
                                                    World world,
                                                    BlockPos pos)
        Mappings:
        Namespace Name Mixin selector
        official d Lbzu;d(Lcjr;Lbvr;Lgb;)Lcjr;
        intermediary method_26374 Lnet/minecraft/class_3962;method_26374(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;
        named emptyFullComposter Lnet/minecraft/block/ComposterBlock;emptyFullComposter(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
      • emptyComposter

        private static BlockState emptyComposter​(BlockState state,
                                                 WorldAccess world,
                                                 BlockPos pos)
        Mappings:
        Namespace Name Mixin selector
        official d Lbzu;d(Lcjr;Lbvs;Lgb;)Lcjr;
        intermediary method_17759 Lnet/minecraft/class_3962;method_17759(Lnet/minecraft/class_2680;Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;
        named emptyComposter Lnet/minecraft/block/ComposterBlock;emptyComposter(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
      • addToComposter

        private static BlockState addToComposter​(BlockState state,
                                                 WorldAccess world,
                                                 BlockPos pos,
                                                 ItemStack item)
        Mappings:
        Namespace Name Mixin selector
        official b Lbzu;b(Lcjr;Lbvs;Lgb;Lbpr;)Lcjr;
        intermediary method_17756 Lnet/minecraft/class_3962;method_17756(Lnet/minecraft/class_2680;Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;Lnet/minecraft/class_1799;)Lnet/minecraft/class_2680;
        named addToComposter Lnet/minecraft/block/ComposterBlock;addToComposter(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/item/ItemStack;)Lnet/minecraft/block/BlockState;
      • scheduledTick

        public void scheduledTick​(BlockState state,
                                  ServerWorld world,
                                  BlockPos pos,
                                  Random random)
        覆盖:
        scheduledTick 在类中 AbstractBlock
        Mappings:
        Namespace Name Mixin selector
        official a_ Lcjq;a_(Lcjr;Labj;Lgb;Ljava/util/Random;)V
        intermediary method_9588 Lnet/minecraft/class_4970;method_9588(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Ljava/util/Random;)V
        named scheduledTick Lnet/minecraft/block/AbstractBlock;scheduledTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)V
      • hasComparatorOutput

        public boolean hasComparatorOutput​(BlockState state)
        覆盖:
        hasComparatorOutput 在类中 AbstractBlock
        Mappings:
        Namespace Name Mixin selector
        official g_ Lcjq;g_(Lcjr;)Z
        intermediary method_9498 Lnet/minecraft/class_4970;method_9498(Lnet/minecraft/class_2680;)Z
        named hasComparatorOutput Lnet/minecraft/block/AbstractBlock;hasComparatorOutput(Lnet/minecraft/block/BlockState;)Z
      • getComparatorOutput

        public int getComparatorOutput​(BlockState state,
                                       World world,
                                       BlockPos pos)
        覆盖:
        getComparatorOutput 在类中 AbstractBlock
        Mappings:
        Namespace Name Mixin selector
        official a Lcjq;a(Lcjr;Lbvr;Lgb;)I
        intermediary method_9572 Lnet/minecraft/class_4970;method_9572(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)I
        named getComparatorOutput Lnet/minecraft/block/AbstractBlock;getComparatorOutput(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)I
      • appendProperties

        protected void appendProperties​(StateManager.Builder<Block,​BlockState> builder)
        覆盖:
        appendProperties 在类中 Block
        Mappings:
        Namespace Name Mixin selector
        official a Lbyq;a(Lcjs$a;)V
        intermediary method_9515 Lnet/minecraft/class_2248;method_9515(Lnet/minecraft/class_2689$class_2690;)V
        named appendProperties Lnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)V
      • canPathfindThrough

        public boolean canPathfindThrough​(BlockState state,
                                          BlockView world,
                                          BlockPos pos,
                                          NavigationType type)
        覆盖:
        canPathfindThrough 在类中 AbstractBlock
        Mappings:
        Namespace Name Mixin selector
        official a Lcjq;a(Lcjr;Lbuv;Lgb;Ldgb;)Z
        intermediary method_9516 Lnet/minecraft/class_4970;method_9516(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_10;)Z
        named canPathfindThrough Lnet/minecraft/block/AbstractBlock;canPathfindThrough(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/ai/pathing/NavigationType;)Z
      • getInventory

        public SidedInventory getInventory​(BlockState state,
                                           WorldAccess world,
                                           BlockPos pos)
        指定者:
        getInventory 在接口中 InventoryProvider
        Mappings:
        Namespace Name Mixin selector
        official a Larq;a(Lcjr;Lbvs;Lgb;)Larp;
        intermediary method_17680 Lnet/minecraft/class_3954;method_17680(Lnet/minecraft/class_2680;Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;)Lnet/minecraft/class_1278;
        named getInventory Lnet/minecraft/block/InventoryProvider;getInventory(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/inventory/SidedInventory;