Class KelpPlantBlock

All Implemented Interfaces:
Fertilizable, FluidFillable, ItemConvertible, ToggleableFeature

public class KelpPlantBlock extends AbstractPlantBlock implements FluidFillable
Mappings:
Namespace Name
named net/minecraft/block/KelpPlantBlock
intermediary net/minecraft/class_2391
official djn
  • Field Details

    • CODEC

      public static final com.mojang.serialization.MapCodec<KelpPlantBlock> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/block/KelpPlantBlock;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_46379 Lnet/minecraft/class_2391;field_46379:Lcom/mojang/serialization/MapCodec;
      official c Ldjn;c:Lcom/mojang/serialization/MapCodec;
  • Constructor Details

    • KelpPlantBlock

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

    • getCodec

      public com.mojang.serialization.MapCodec<KelpPlantBlock> getCodec()
      Specified by:
      getCodec in class AbstractPlantBlock
      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 Ldsk;a()Lcom/mojang/serialization/MapCodec;
    • getStem

      protected AbstractPlantStemBlock getStem()
      Specified by:
      getStem in class AbstractPlantPartBlock
      Mappings:
      Namespace Name Mixin selector
      named getStem Lnet/minecraft/block/AbstractPlantPartBlock;getStem()Lnet/minecraft/block/AbstractPlantStemBlock;
      intermediary method_24945 Lnet/minecraft/class_4863;method_24945()Lnet/minecraft/class_4865;
      official c Ldiv;c()Ldix;
    • 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_ Ldsk;b_(Ldsl;)Leoj;
    • 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 Ldiv;m(Ldsl;)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 Ldjz;a(Lcml;Ldbm;Lja;Ldsl;Leoi;)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 Ldjz;a(Ldch;Lja;Ldsl;Leoj;)Z