类 FluidBlock

    • 字段详细资料

      • LEVEL

        public static final IntProperty LEVEL
        Mappings:
        Namespace Name Mixin selector
        official a Lcct;a:Lckr;
        intermediary field_11278 Lnet/minecraft/class_2404;field_11278:Lnet/minecraft/class_2758;
        named LEVEL Lnet/minecraft/block/FluidBlock;LEVEL:Lnet/minecraft/state/property/IntProperty;
      • COLLISION_SHAPE

        public static final VoxelShape COLLISION_SHAPE
        Mappings:
        Namespace Name Mixin selector
        official c Lcct;c:Ldmt;
        intermediary field_24412 Lnet/minecraft/class_2404;field_24412:Lnet/minecraft/class_265;
        named COLLISION_SHAPE Lnet/minecraft/block/FluidBlock;COLLISION_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
      • fluid

        protected final FlowableFluid fluid
        Mappings:
        Namespace Name Mixin selector
        official b Lcct;b:Lddq;
        intermediary field_11279 Lnet/minecraft/class_2404;field_11279:Lnet/minecraft/class_3609;
        named fluid Lnet/minecraft/block/FluidBlock;fluid:Lnet/minecraft/fluid/FlowableFluid;
      • statesByLevel

        private final List<FluidState> statesByLevel
        Mappings:
        Namespace Name Mixin selector
        official d Lcct;d:Ljava/util/List;
        intermediary field_11276 Lnet/minecraft/class_2404;field_11276:Ljava/util/List;
        named statesByLevel Lnet/minecraft/block/FluidBlock;statesByLevel:Ljava/util/List;
    • 构造器详细资料

      • FluidBlock

        protected FluidBlock​(FlowableFluid fluid,
                             AbstractBlock.Settings settings)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lcct;<init>(Lddq;Lcjq$c;)V
        intermediary <init> Lnet/minecraft/class_2404;<init>(Lnet/minecraft/class_3609;Lnet/minecraft/class_4970$class_2251;)V
        named <init> Lnet/minecraft/block/FluidBlock;<init>(Lnet/minecraft/fluid/FlowableFluid;Lnet/minecraft/block/AbstractBlock$Settings;)V
    • 方法详细资料

      • 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;
      • hasRandomTicks

        public boolean hasRandomTicks​(BlockState state)
        覆盖:
        hasRandomTicks 在类中 Block
        Mappings:
        Namespace Name Mixin selector
        official d_ Lbyq;d_(Lcjr;)Z
        intermediary method_9542 Lnet/minecraft/class_2248;method_9542(Lnet/minecraft/class_2680;)Z
        named hasRandomTicks Lnet/minecraft/block/Block;hasRandomTicks(Lnet/minecraft/block/BlockState;)Z
      • randomTick

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

        public boolean isTranslucent​(BlockState state,
                                     BlockView world,
                                     BlockPos pos)
        覆盖:
        isTranslucent 在类中 Block
        Mappings:
        Namespace Name Mixin selector
        official c Lbyq;c(Lcjr;Lbuv;Lgb;)Z
        intermediary method_9579 Lnet/minecraft/class_2248;method_9579(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Z
        named isTranslucent Lnet/minecraft/block/Block;isTranslucent(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Z
      • 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
      • getFluidState

        public FluidState getFluidState​(BlockState state)
        覆盖:
        getFluidState 在类中 AbstractBlock
        Mappings:
        Namespace Name Mixin selector
        official c_ Lcjq;c_(Lcjr;)Ldds;
        intermediary method_9545 Lnet/minecraft/class_4970;method_9545(Lnet/minecraft/class_2680;)Lnet/minecraft/class_3610;
        named getFluidState Lnet/minecraft/block/AbstractBlock;getFluidState(Lnet/minecraft/block/BlockState;)Lnet/minecraft/fluid/FluidState;
      • isSideInvisible

        public boolean isSideInvisible​(BlockState state,
                                       BlockState stateFrom,
                                       Direction direction)
        覆盖:
        isSideInvisible 在类中 AbstractBlock
        Mappings:
        Namespace Name Mixin selector
        official a Lcjq;a(Lcjr;Lcjr;Lgg;)Z
        intermediary method_9522 Lnet/minecraft/class_4970;method_9522(Lnet/minecraft/class_2680;Lnet/minecraft/class_2680;Lnet/minecraft/class_2350;)Z
        named isSideInvisible Lnet/minecraft/block/AbstractBlock;isSideInvisible(Lnet/minecraft/block/BlockState;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Direction;)Z
      • getRenderType

        public BlockRenderType getRenderType​(BlockState state)
        覆盖:
        getRenderType 在类中 AbstractBlock
        Mappings:
        Namespace Name Mixin selector
        official b_ Lcjq;b_(Lcjr;)Lced;
        intermediary method_9604 Lnet/minecraft/class_4970;method_9604(Lnet/minecraft/class_2680;)Lnet/minecraft/class_2464;
        named getRenderType Lnet/minecraft/block/AbstractBlock;getRenderType(Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/BlockRenderType;
      • getDroppedStacks

        public List<ItemStack> getDroppedStacks​(BlockState state,
                                                LootContext.Builder builder)
        覆盖:
        getDroppedStacks 在类中 AbstractBlock
        Mappings:
        Namespace Name Mixin selector
        official a Lcjq;a(Lcjr;Ldhp$a;)Ljava/util/List;
        intermediary method_9560 Lnet/minecraft/class_4970;method_9560(Lnet/minecraft/class_2680;Lnet/minecraft/class_47$class_48;)Ljava/util/List;
        named getDroppedStacks Lnet/minecraft/block/AbstractBlock;getDroppedStacks(Lnet/minecraft/block/BlockState;Lnet/minecraft/loot/context/LootContext$Builder;)Ljava/util/List;
      • 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;
      • 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
      • getStateForNeighborUpdate

        public BlockState getStateForNeighborUpdate​(BlockState state,
                                                    Direction direction,
                                                    BlockState neighborState,
                                                    WorldAccess world,
                                                    BlockPos pos,
                                                    BlockPos neighborPos)
        Gets the possibly updated block state of this block when a neighboring block is updated.
        覆盖:
        getStateForNeighborUpdate 在类中 AbstractBlock
        参数:
        state - the state of this block
        direction - the direction from this block to the neighbor
        neighborState - the state of the updated neighbor block
        world - the world
        pos - the position of this block
        neighborPos - the position of the neighbor block
        返回:
        the new state of this block
        Mappings:
        Namespace Name Mixin selector
        official a Lcjq;a(Lcjr;Lgg;Lcjr;Lbvs;Lgb;Lgb;)Lcjr;
        intermediary method_9559 Lnet/minecraft/class_4970;method_9559(Lnet/minecraft/class_2680;Lnet/minecraft/class_2350;Lnet/minecraft/class_2680;Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;
        named getStateForNeighborUpdate Lnet/minecraft/block/AbstractBlock;getStateForNeighborUpdate(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Direction;Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
      • neighborUpdate

        public void neighborUpdate​(BlockState state,
                                   World world,
                                   BlockPos pos,
                                   Block block,
                                   BlockPos fromPos,
                                   boolean notify)
        覆盖:
        neighborUpdate 在类中 AbstractBlock
        Mappings:
        Namespace Name Mixin selector
        official a Lcjq;a(Lcjr;Lbvr;Lgb;Lbyq;Lgb;Z)V
        intermediary method_9612 Lnet/minecraft/class_4970;method_9612(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2248;Lnet/minecraft/class_2338;Z)V
        named neighborUpdate Lnet/minecraft/block/AbstractBlock;neighborUpdate(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/Block;Lnet/minecraft/util/math/BlockPos;Z)V
      • receiveNeighborFluids

        private boolean receiveNeighborFluids​(World world,
                                              BlockPos pos,
                                              BlockState state)
        Mappings:
        Namespace Name Mixin selector
        official a Lcct;a(Lbvr;Lgb;Lcjr;)Z
        intermediary method_10316 Lnet/minecraft/class_2404;method_10316(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Z
        named receiveNeighborFluids Lnet/minecraft/block/FluidBlock;receiveNeighborFluids(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Z
      • playExtinguishSound

        private void playExtinguishSound​(WorldAccess world,
                                         BlockPos pos)
        Mappings:
        Namespace Name Mixin selector
        official a Lcct;a(Lbvs;Lgb;)V
        intermediary method_10318 Lnet/minecraft/class_2404;method_10318(Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;)V
        named playExtinguishSound Lnet/minecraft/block/FluidBlock;playExtinguishSound(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;)V
      • 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
      • tryDrainFluid

        public ItemStack tryDrainFluid​(WorldAccess world,
                                       BlockPos pos,
                                       BlockState state)
        指定者:
        tryDrainFluid 在接口中 FluidDrainable
        Mappings:
        Namespace Name Mixin selector
        official c Lbyv;c(Lbvs;Lgb;Lcjr;)Lbpr;
        intermediary method_9700 Lnet/minecraft/class_2263;method_9700(Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Lnet/minecraft/class_1799;
        named tryDrainFluid Lnet/minecraft/block/FluidDrainable;tryDrainFluid(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/item/ItemStack;
      • getBucketFillSound

        public Optional<SoundEvent> getBucketFillSound()
        Returns the sound played when filling a bucket with the fluid contained in this block.
        指定者:
        getBucketFillSound 在接口中 FluidDrainable
        另请参阅:
        Fluid.getBucketFillSound()
        Mappings:
        Namespace Name Mixin selector
        official c Lbyv;c()Ljava/util/Optional;
        intermediary method_32351 Lnet/minecraft/class_2263;method_32351()Ljava/util/Optional;
        named getBucketFillSound Lnet/minecraft/block/FluidDrainable;getBucketFillSound()Ljava/util/Optional;