Class TallSeagrassBlock

All Implemented Interfaces:
FluidFillable, ItemConvertible, ToggleableFeature

public class TallSeagrassBlock extends TallPlantBlock implements FluidFillable
Mappings:
Namespace Name
named net/minecraft/block/TallSeagrassBlock
intermediary net/minecraft/class_2525
official dnh
  • Field Details

    • CODEC

      public static final com.mojang.serialization.MapCodec<TallSeagrassBlock> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/block/TallSeagrassBlock;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_46471 Lnet/minecraft/class_2525;field_46471:Lcom/mojang/serialization/MapCodec;
      official c Ldnh;c:Lcom/mojang/serialization/MapCodec;
    • HALF

      public static final EnumProperty<DoubleBlockHalf> HALF
      Mappings:
      Namespace Name Mixin selector
      named HALF Lnet/minecraft/block/TallSeagrassBlock;HALF:Lnet/minecraft/state/property/EnumProperty;
      intermediary field_11616 Lnet/minecraft/class_2525;field_11616:Lnet/minecraft/class_2754;
      official d Ldnh;d:Ldtc;
    • field_31262

      protected static final float field_31262
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_31262 Lnet/minecraft/block/TallSeagrassBlock;field_31262:F
      intermediary field_31262 Lnet/minecraft/class_2525;field_31262:F
      official e Ldnh;e:F
    • SHAPE

      protected static final VoxelShape SHAPE
      Mappings:
      Namespace Name Mixin selector
      named SHAPE Lnet/minecraft/block/TallSeagrassBlock;SHAPE:Lnet/minecraft/util/shape/VoxelShape;
      intermediary field_11615 Lnet/minecraft/class_2525;field_11615:Lnet/minecraft/class_265;
      official f Ldnh;f:Lewm;
  • Constructor Details

    • TallSeagrassBlock

      public TallSeagrassBlock(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> Ldsd;<init>(Ldsd$d;)V
  • Method Details

    • getCodec

      public com.mojang.serialization.MapCodec<TallSeagrassBlock> getCodec()
      Overrides:
      getCodec in class TallPlantBlock
      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 Ldsd;a()Lcom/mojang/serialization/MapCodec;
    • getOutlineShape

      protected 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 Ldsd;a(Ldse;Ldbg;Liz;Levy;)Lewm;
    • canPlantOnTop

      protected boolean canPlantOnTop(BlockState floor, BlockView world, BlockPos pos)
      Overrides:
      canPlantOnTop in class PlantBlock
      Mappings:
      Namespace Name Mixin selector
      named canPlantOnTop Lnet/minecraft/block/PlantBlock;canPlantOnTop(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Z
      intermediary method_9695 Lnet/minecraft/class_2261;method_9695(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Z
      official b Ldfk;b(Ldse;Ldbg;Liz;)Z
    • getPickStack

      public ItemStack getPickStack(WorldView world, BlockPos pos, BlockState state)
      Returns the new item stack when using pick block functionality.

      Pick block is available via middle-clicking by default. Blocks without the corresponding BlockItem, such as crops, should override this method to return the correct item stack.

      Overrides:
      getPickStack in class Block
      Returns:
      the new item stack when using pick block functionality
      Mappings:
      Namespace Name Mixin selector
      named getPickStack Lnet/minecraft/block/Block;getPickStack(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/item/ItemStack;
      intermediary method_9574 Lnet/minecraft/class_2248;method_9574(Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Lnet/minecraft/class_1799;
      official a Ldfb;a(Ldcd;Liz;Ldse;)Lcur;
    • getPlacementState

      @Nullable public @Nullable BlockState getPlacementState(ItemPlacementContext ctx)
      Overrides:
      getPlacementState in class TallPlantBlock
      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 Ldfb;a(Lcyc;)Ldse;
    • canPlaceAt

      protected boolean canPlaceAt(BlockState state, WorldView world, BlockPos pos)
      Returns whether the block can be placed at pos.

      Blocks with supporting block requirements should override this method. Note that this should also be checked manually during TallPlantBlock.getStateForNeighborUpdate(net.minecraft.block.BlockState, net.minecraft.util.math.Direction, net.minecraft.block.BlockState, net.minecraft.world.WorldAccess, net.minecraft.util.math.BlockPos, net.minecraft.util.math.BlockPos) in order to break the block that lost its supporting block.

      This is only checked during the use of block items or by endermen, falling blocks, etc that can place blocks. This does not affect block state changes performed through

      invalid reference
      World#setBlockState(BlockPos, BlockState)
      call.

      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

      invalid reference
      World#isClient
      .
      Overrides:
      canPlaceAt in class TallPlantBlock
      Returns:
      whether the block can be placed at pos
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named canPlaceAt Lnet/minecraft/block/AbstractBlock;canPlaceAt(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)Z
      intermediary method_9558 Lnet/minecraft/class_4970;method_9558(Lnet/minecraft/class_2680;Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;)Z
      official a Ldsd;a(Ldse;Ldcd;Liz;)Z
    • 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_ Ldsd;b_(Ldse;)Lenx;
    • 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 Ldjs;a(Lcmz;Ldbg;Liz;Ldse;Lenw;)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 Ldjs;a(Ldcb;Liz;Ldse;Lenx;)Z