类 TallPlantBlock

    • 字段详细资料

      • HALF

        public static final EnumProperty<DoubleBlockHalf> HALF
        Mappings:
        Namespace Name Mixin selector
        official a Lcao;a:Lckp;
        intermediary field_10929 Lnet/minecraft/class_2320;field_10929:Lnet/minecraft/class_2754;
        named HALF Lnet/minecraft/block/TallPlantBlock;HALF:Lnet/minecraft/state/property/EnumProperty;
    • 构造器详细资料

      • TallPlantBlock

        public TallPlantBlock​(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
    • 方法详细资料

      • 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 在类中 PlantBlock
        参数:
        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;
      • getPlacementState

        @Nullable
        public @Nullable BlockState getPlacementState​(ItemPlacementContext ctx)
        覆盖:
        getPlacementState 在类中 Block
        Mappings:
        Namespace Name Mixin selector
        official a Lbyq;a(Lbrr;)Lcjr;
        intermediary method_9605 Lnet/minecraft/class_2248;method_9605(Lnet/minecraft/class_1750;)Lnet/minecraft/class_2680;
        named getPlacementState Lnet/minecraft/block/Block;getPlacementState(Lnet/minecraft/item/ItemPlacementContext;)Lnet/minecraft/block/BlockState;
      • onPlaced

        public void onPlaced​(World world,
                             BlockPos pos,
                             BlockState state,
                             LivingEntity placer,
                             ItemStack itemStack)
        覆盖:
        onPlaced 在类中 Block
        Mappings:
        Namespace Name Mixin selector
        official a Lbyq;a(Lbvr;Lgb;Lcjr;Lasy;Lbpr;)V
        intermediary method_9567 Lnet/minecraft/class_2248;method_9567(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_1309;Lnet/minecraft/class_1799;)V
        named onPlaced Lnet/minecraft/block/Block;onPlaced(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;)V
      • canPlaceAt

        public boolean canPlaceAt​(BlockState state,
                                  WorldView world,
                                  BlockPos pos)
        覆盖:
        canPlaceAt 在类中 PlantBlock
        Mappings:
        Namespace Name Mixin selector
        official a Lcjq;a(Lcjr;Lbvu;Lgb;)Z
        intermediary method_9558 Lnet/minecraft/class_4970;method_9558(Lnet/minecraft/class_2680;Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;)Z
        named canPlaceAt Lnet/minecraft/block/AbstractBlock;canPlaceAt(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)Z
      • placeAt

        public void placeAt​(WorldAccess world,
                            BlockState state,
                            BlockPos pos,
                            int flags)
        Mappings:
        Namespace Name Mixin selector
        official a Lcao;a(Lbvs;Lcjr;Lgb;I)V
        intermediary method_10021 Lnet/minecraft/class_2320;method_10021(Lnet/minecraft/class_1936;Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;I)V
        named placeAt Lnet/minecraft/block/TallPlantBlock;placeAt(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;I)V
      • onBreak

        public void onBreak​(World world,
                            BlockPos pos,
                            BlockState state,
                            PlayerEntity player)
        覆盖:
        onBreak 在类中 Block
        Mappings:
        Namespace Name Mixin selector
        official a Lbyq;a(Lbvr;Lgb;Lcjr;Lbjf;)V
        intermediary method_9576 Lnet/minecraft/class_2248;method_9576(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_1657;)V
        named onBreak Lnet/minecraft/block/Block;onBreak(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/player/PlayerEntity;)V
      • afterBreak

        public void afterBreak​(World world,
                               PlayerEntity player,
                               BlockPos pos,
                               BlockState state,
                               @Nullable
                               @Nullable BlockEntity blockEntity,
                               ItemStack stack)
        覆盖:
        afterBreak 在类中 Block
        Mappings:
        Namespace Name Mixin selector
        official a Lbyq;a(Lbvr;Lbjf;Lgb;Lcjr;Lchp;Lbpr;)V
        intermediary method_9556 Lnet/minecraft/class_2248;method_9556(Lnet/minecraft/class_1937;Lnet/minecraft/class_1657;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2586;Lnet/minecraft/class_1799;)V
        named afterBreak Lnet/minecraft/block/Block;afterBreak(Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/BlockEntity;Lnet/minecraft/item/ItemStack;)V
      • onBreakInCreative

        protected static void onBreakInCreative​(World world,
                                                BlockPos pos,
                                                BlockState state,
                                                PlayerEntity player)
        Destroys a bottom half of a tall double block (such as a plant or a door) without dropping an item when broken in creative.
        另请参阅:
        Block.onBreak(World, BlockPos, BlockState, PlayerEntity)
        Mappings:
        Namespace Name Mixin selector
        official b Lcao;b(Lbvr;Lgb;Lcjr;Lbjf;)V
        intermediary method_30036 Lnet/minecraft/class_2320;method_30036(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_1657;)V
        named onBreakInCreative Lnet/minecraft/block/TallPlantBlock;onBreakInCreative(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/player/PlayerEntity;)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
      • getOffsetType

        public AbstractBlock.OffsetType getOffsetType()
        覆盖:
        getOffsetType 在类中 AbstractBlock
        Mappings:
        Namespace Name Mixin selector
        official ak_ Lcjq;ak_()Lcjq$b;
        intermediary method_16841 Lnet/minecraft/class_4970;method_16841()Lnet/minecraft/class_4970$class_2250;
        named getOffsetType Lnet/minecraft/block/AbstractBlock;getOffsetType()Lnet/minecraft/block/AbstractBlock$OffsetType;
      • getRenderingSeed

        public long getRenderingSeed​(BlockState state,
                                     BlockPos pos)
        覆盖:
        getRenderingSeed 在类中 AbstractBlock
        Mappings:
        Namespace Name Mixin selector
        official a Lcjq;a(Lcjr;Lgb;)J
        intermediary method_9535 Lnet/minecraft/class_4970;method_9535(Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;)J
        named getRenderingSeed Lnet/minecraft/block/AbstractBlock;getRenderingSeed(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;)J