Class KelpBlock

All Implemented Interfaces:
Fertilizable, FluidFillable, ItemConvertible, ToggleableFeature

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

    • CODEC

      public static final com.mojang.serialization.MapCodec<KelpBlock> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/block/KelpBlock;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_46378 Lnet/minecraft/class_2393;field_46378:Lcom/mojang/serialization/MapCodec;
      official c Ldje;c:Lcom/mojang/serialization/MapCodec;
    • SHAPE

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

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

    • KelpBlock

      protected KelpBlock(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> Ldsc;<init>(Ldsc$d;)V
  • Method Details

    • getCodec

      public com.mojang.serialization.MapCodec<KelpBlock> getCodec()
      Specified by:
      getCodec in class AbstractPlantStemBlock
      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 Ldsc;a()Lcom/mojang/serialization/MapCodec;
    • chooseStemState

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

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

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

      public boolean canFillWithFluid(@Nullable @Nullable PlayerEntity player, BlockView world, BlockPos pos, BlockState state, Fluid fluid)
      Specified by:
      canFillWithFluid in interface FluidFillable
      Mappings:
      Namespace Name Mixin selector
      named canFillWithFluid Lnet/minecraft/block/FluidFillable;canFillWithFluid(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/fluid/Fluid;)Z
      intermediary method_10310 Lnet/minecraft/class_2402;method_10310(Lnet/minecraft/class_1657;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_3611;)Z
      official a Ldjr;a(Lcmy;Ldbf;Liz;Ldsd;Lenv;)Z
    • tryFillWithFluid

      public boolean tryFillWithFluid(WorldAccess world, BlockPos pos, BlockState state, FluidState fluidState)
      Specified by:
      tryFillWithFluid in interface FluidFillable
      Mappings:
      Namespace Name Mixin selector
      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
      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
      official a Ldjr;a(Ldca;Liz;Ldsd;Lenw;)Z
    • getGrowthLength

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

      @Nullable public @Nullable BlockState getPlacementState(ItemPlacementContext ctx)
      Overrides:
      getPlacementState in class AbstractPlantPartBlock
      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 Ldfa;a(Lcyb;)Ldsd;
    • getFluidState

      protected FluidState getFluidState(BlockState state)
      Returns the state's associated fluid state.

      Waterloggable blocks must override this to return Fluids.WATER.getStill(false) when waterlogged.

      Overrides:
      getFluidState in class AbstractBlock
      Returns:
      the state's associated fluid state
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named getFluidState Lnet/minecraft/block/AbstractBlock;getFluidState(Lnet/minecraft/block/BlockState;)Lnet/minecraft/fluid/FluidState;
      intermediary method_9545 Lnet/minecraft/class_4970;method_9545(Lnet/minecraft/class_2680;)Lnet/minecraft/class_3610;
      official b_ Ldsc;b_(Ldsd;)Lenw;