Class FlowerbedBlock

All Implemented Interfaces:
Fertilizable, Segmented, ItemConvertible, ToggleableFeature

public class FlowerbedBlock extends PlantBlock implements Fertilizable, Segmented
Mappings:
Namespace Name
named net/minecraft/block/FlowerbedBlock
intermediary net/minecraft/class_10594
official dtf
  • Field Details

    • CODEC

      public static final com.mojang.serialization.MapCodec<FlowerbedBlock> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/block/FlowerbedBlock;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_55761 Lnet/minecraft/class_10594;field_55761:Lcom/mojang/serialization/MapCodec;
      official a Ldtf;a:Lcom/mojang/serialization/MapCodec;
    • HORIZONTAL_FACING

      public static final EnumProperty<Direction> HORIZONTAL_FACING
      Mappings:
      Namespace Name Mixin selector
      named HORIZONTAL_FACING Lnet/minecraft/block/FlowerbedBlock;HORIZONTAL_FACING:Lnet/minecraft/state/property/EnumProperty;
      intermediary field_55762 Lnet/minecraft/class_10594;field_55762:Lnet/minecraft/class_2754;
      official b Ldtf;b:Leez;
    • FLOWER_AMOUNT

      public static final IntProperty FLOWER_AMOUNT
      Mappings:
      Namespace Name Mixin selector
      named FLOWER_AMOUNT Lnet/minecraft/block/FlowerbedBlock;FLOWER_AMOUNT:Lnet/minecraft/state/property/IntProperty;
      intermediary field_55763 Lnet/minecraft/class_10594;field_55763:Lnet/minecraft/class_2758;
      official c Ldtf;c:Lefb;
    • shapeFunction

      private final Function<BlockState,VoxelShape> shapeFunction
      Mappings:
      Namespace Name Mixin selector
      named shapeFunction Lnet/minecraft/block/FlowerbedBlock;shapeFunction:Ljava/util/function/Function;
      intermediary field_55764 Lnet/minecraft/class_10594;field_55764:Ljava/util/function/Function;
      official g Ldtf;g:Ljava/util/function/Function;
  • Constructor Details

    • FlowerbedBlock

      protected FlowerbedBlock(AbstractBlock.Settings settings)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/block/AbstractBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;)V
      intermediary <init> Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)V
      official <init> Leea;<init>(Leea$d;)V
  • Method Details

    • getCodec

      public com.mojang.serialization.MapCodec<FlowerbedBlock> getCodec()
      Specified by:
      getCodec in class PlantBlock
      Mappings:
      Namespace Name Mixin selector
      named getCodec Lnet/minecraft/block/AbstractBlock;getCodec()Lcom/mojang/serialization/MapCodec;
      intermediary method_53969 Lnet/minecraft/class_4970;method_53969()Lcom/mojang/serialization/MapCodec;
      official a Leea;a()Lcom/mojang/serialization/MapCodec;
    • createShapeFunction

      private Function<BlockState,VoxelShape> createShapeFunction()
      Mappings:
      Namespace Name Mixin selector
      named createShapeFunction Lnet/minecraft/block/FlowerbedBlock;createShapeFunction()Ljava/util/function/Function;
      intermediary method_66435 Lnet/minecraft/class_10594;method_66435()Ljava/util/function/Function;
      official q Ldtf;q()Ljava/util/function/Function;
    • rotate

      public BlockState rotate(BlockState state, BlockRotation rotation)
      Returns state rotated by rotation.

      By default, this returns the provided block state.

      Overrides:
      rotate in class AbstractBlock
      Returns:
      state rotated by rotation
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named rotate Lnet/minecraft/block/AbstractBlock;rotate(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockRotation;)Lnet/minecraft/block/BlockState;
      intermediary method_9598 Lnet/minecraft/class_4970;method_9598(Lnet/minecraft/class_2680;Lnet/minecraft/class_2470;)Lnet/minecraft/class_2680;
      official a Leea;a(Leeb;Ldwu;)Leeb;
    • mirror

      public BlockState mirror(BlockState state, BlockMirror mirror)
      Returns state mirrored by mirror.

      By default, this returns the provided block state.

      Overrides:
      mirror in class AbstractBlock
      Returns:
      state mirrored by mirror
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named mirror Lnet/minecraft/block/AbstractBlock;mirror(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockMirror;)Lnet/minecraft/block/BlockState;
      intermediary method_9569 Lnet/minecraft/class_4970;method_9569(Lnet/minecraft/class_2680;Lnet/minecraft/class_2415;)Lnet/minecraft/class_2680;
      official a Leea;a(Leeb;Ldvd;)Leeb;
    • canReplace

      public boolean canReplace(BlockState state, ItemPlacementContext context)
      Returns whether the item can replace the block.

      By default, this checks if the block allows replacing and whether the item differs from the block's item. Items composed of multiple blocks, such as candles, vines, or snow layers, should override this to implement additional checks.

      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.

      Overrides:
      canReplace in class AbstractBlock
      Returns:
      whether the item can replace the block
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named canReplace Lnet/minecraft/block/AbstractBlock;canReplace(Lnet/minecraft/block/BlockState;Lnet/minecraft/item/ItemPlacementContext;)Z
      intermediary method_9616 Lnet/minecraft/class_4970;method_9616(Lnet/minecraft/class_2680;Lnet/minecraft/class_1750;)Z
      official a Leea;a(Leeb;Ldgo;)Z
    • getOutlineShape

      public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
      Overrides:
      getOutlineShape in class AbstractBlock
      See Also:
      Mappings:
      Namespace Name Mixin selector
      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;
      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;
      official a Leea;a(Leeb;Ldly;Ljb;Lfix;)Lfjm;
    • getHeight

      public double getHeight()
      Specified by:
      getHeight in interface Segmented
      Mappings:
      Namespace Name Mixin selector
      named getHeight Lnet/minecraft/block/Segmented;getHeight()D
      intermediary method_66433 Lnet/minecraft/class_10596;method_66433()D
      official b Ldxh;b()D
    • getAmountProperty

      public IntProperty getAmountProperty()
      Specified by:
      getAmountProperty in interface Segmented
      Mappings:
      Namespace Name Mixin selector
      named getAmountProperty Lnet/minecraft/block/Segmented;getAmountProperty()Lnet/minecraft/state/property/IntProperty;
      intermediary method_66434 Lnet/minecraft/class_10596;method_66434()Lnet/minecraft/class_2758;
      official c Ldxh;c()Lefb;
    • getPlacementState

      public BlockState getPlacementState(ItemPlacementContext ctx)
      Overrides:
      getPlacementState in class Block
      Mappings:
      Namespace Name Mixin selector
      named getPlacementState Lnet/minecraft/block/Block;getPlacementState(Lnet/minecraft/item/ItemPlacementContext;)Lnet/minecraft/block/BlockState;
      intermediary method_9605 Lnet/minecraft/class_2248;method_9605(Lnet/minecraft/class_1750;)Lnet/minecraft/class_2680;
      official a Ldpz;a(Ldgo;)Leeb;
    • appendProperties

      protected void appendProperties(StateManager.Builder<Block,BlockState> builder)
      Appends block state properties to this block. To use this, override and call StateManager.Builder.add(net.minecraft.state.property.Property<?>[]) inside the method. See Properties for the list of pre-defined properties.
      Overrides:
      appendProperties in class Block
      Mappings:
      Namespace Name Mixin selector
      named appendProperties Lnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)V
      intermediary method_9515 Lnet/minecraft/class_2248;method_9515(Lnet/minecraft/class_2689$class_2690;)V
      official a Ldpz;a(Leec$a;)V
    • isFertilizable

      public boolean isFertilizable(WorldView world, BlockPos pos, BlockState state)
      Specified by:
      isFertilizable in interface Fertilizable
      Mappings:
      Namespace Name Mixin selector
      named isFertilizable Lnet/minecraft/block/Fertilizable;isFertilizable(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Z
      intermediary method_9651 Lnet/minecraft/class_2256;method_9651(Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Z
      official a Ldqc;a(Ldmx;Ljb;Leeb;)Z
    • canGrow

      public boolean canGrow(World world, Random random, BlockPos pos, BlockState state)
      Specified by:
      canGrow in interface Fertilizable
      Mappings:
      Namespace Name Mixin selector
      named canGrow Lnet/minecraft/block/Fertilizable;canGrow(Lnet/minecraft/world/World;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Z
      intermediary method_9650 Lnet/minecraft/class_2256;method_9650(Lnet/minecraft/class_1937;Lnet/minecraft/class_5819;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Z
      official a Ldqc;a(Ldmu;Lbck;Ljb;Leeb;)Z
    • grow

      public void grow(ServerWorld world, Random random, BlockPos pos, BlockState state)
      Specified by:
      grow in interface Fertilizable
      Mappings:
      Namespace Name Mixin selector
      named grow Lnet/minecraft/block/Fertilizable;grow(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
      intermediary method_9652 Lnet/minecraft/class_2256;method_9652(Lnet/minecraft/class_3218;Lnet/minecraft/class_5819;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
      official a Ldqc;a(Laub;Lbck;Ljb;Leeb;)V