Class KelpBlock

All Implemented Interfaces:
Fertilizable, FluidFillable, ItemConvertible

public class KelpBlock extends AbstractPlantStemBlock implements FluidFillable
Mappings:
Namespace Name
official cdg
intermediary net/minecraft/class_2393
named net/minecraft/block/KelpBlock
  • Field Details

    • SHAPE

      protected static final VoxelShape SHAPE
      Mappings:
      Namespace Name Mixin selector
      official f Lcdg;f:Ldnt;
      intermediary field_11195 Lnet/minecraft/class_2393;field_11195:Lnet/minecraft/class_265;
      named SHAPE Lnet/minecraft/block/KelpBlock;SHAPE:Lnet/minecraft/util/shape/VoxelShape;
    • GROWTH_CHANCE

      private static final double GROWTH_CHANCE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official g Lcdg;g:D
      intermediary field_31105 Lnet/minecraft/class_2393;field_31105:D
      named GROWTH_CHANCE Lnet/minecraft/block/KelpBlock;GROWTH_CHANCE:D
  • Constructor Details

    • KelpBlock

      protected KelpBlock(AbstractBlock.Settings settings)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lckr;<init>(Lckr$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
  • Method Details

    • chooseStemState

      protected boolean chooseStemState(BlockState state)
      Specified by:
      chooseStemState in class AbstractPlantStemBlock
      Mappings:
      Namespace Name Mixin selector
      official g Lccs;g(Lcks;)Z
      intermediary method_24949 Lnet/minecraft/class_4865;method_24949(Lnet/minecraft/class_2680;)Z
      named chooseStemState Lnet/minecraft/block/AbstractPlantStemBlock;chooseStemState(Lnet/minecraft/block/BlockState;)Z
    • getPlant

      protected Block getPlant()
      Specified by:
      getPlant in class AbstractPlantPartBlock
      Mappings:
      Namespace Name Mixin selector
      official c Lccq;c()Lbzo;
      intermediary method_24946 Lnet/minecraft/class_4863;method_24946()Lnet/minecraft/class_2248;
      named getPlant Lnet/minecraft/block/AbstractPlantPartBlock;getPlant()Lnet/minecraft/block/Block;
    • canAttachTo

      protected boolean canAttachTo(BlockState state)
      Overrides:
      canAttachTo in class AbstractPlantPartBlock
      Mappings:
      Namespace Name Mixin selector
      official h Lccq;h(Lcks;)Z
      intermediary method_24947 Lnet/minecraft/class_4863;method_24947(Lnet/minecraft/class_2680;)Z
      named canAttachTo Lnet/minecraft/block/AbstractPlantPartBlock;canAttachTo(Lnet/minecraft/block/BlockState;)Z
    • canFillWithFluid

      public boolean canFillWithFluid(BlockView world, BlockPos pos, BlockState state, Fluid fluid)
      Specified by:
      canFillWithFluid in interface FluidFillable
      Mappings:
      Namespace Name Mixin selector
      official a Lcdt;a(Lbvt;Lgg;Lcks;Lder;)Z
      intermediary method_10310 Lnet/minecraft/class_2402;method_10310(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_3611;)Z
      named canFillWithFluid Lnet/minecraft/block/FluidFillable;canFillWithFluid(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/fluid/Fluid;)Z
    • tryFillWithFluid

      public boolean tryFillWithFluid(WorldAccess world, BlockPos pos, BlockState state, FluidState fluidState)
      Specified by:
      tryFillWithFluid in interface FluidFillable
      Mappings:
      Namespace Name Mixin selector
      official a Lcdt;a(Lbwq;Lgg;Lcks;Ldes;)Z
      intermediary method_10311 Lnet/minecraft/class_2402;method_10311(Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_3610;)Z
      named tryFillWithFluid Lnet/minecraft/block/FluidFillable;tryFillWithFluid(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/fluid/FluidState;)Z
    • getGrowthLength

      protected int getGrowthLength(Random random)
      Specified by:
      getGrowthLength in class AbstractPlantStemBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lccs;a(Ljava/util/Random;)I
      intermediary method_26376 Lnet/minecraft/class_4865;method_26376(Ljava/util/Random;)I
      named getGrowthLength Lnet/minecraft/block/AbstractPlantStemBlock;getGrowthLength(Ljava/util/Random;)I
    • getPlacementState

      @Nullable public @Nullable BlockState getPlacementState(ItemPlacementContext ctx)
      Overrides:
      getPlacementState in class AbstractPlantPartBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lbzo;a(Lbsp;)Lcks;
      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;
    • getFluidState

      public FluidState getFluidState(BlockState state)
      Overrides:
      getFluidState in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official c_ Lckr;c_(Lcks;)Ldes;
      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;