Class DryVegetationBlock

All Implemented Interfaces:
ItemConvertible, ToggleableFeature
Direct Known Subclasses:
ShortDryGrassBlock, TallDryGrassBlock

public class DryVegetationBlock extends PlantBlock
Mappings:
Namespace Name
named net/minecraft/block/DryVegetationBlock
intermediary net/minecraft/class_2311
official dqb
  • Field Details Link icon

    • CODEC Link icon

      public static final com.mojang.serialization.MapCodec<DryVegetationBlock> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/block/DryVegetationBlock;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_46332 Lnet/minecraft/class_2311;field_46332:Lcom/mojang/serialization/MapCodec;
      official a Ldqb;a:Lcom/mojang/serialization/MapCodec;
    • SHAPE Link icon

      private static final VoxelShape SHAPE
      Mappings:
      Namespace Name Mixin selector
      named SHAPE Lnet/minecraft/block/DryVegetationBlock;SHAPE:Lnet/minecraft/util/shape/VoxelShape;
      intermediary field_10910 Lnet/minecraft/class_2311;field_10910:Lnet/minecraft/class_265;
      official b Ldqb;b:Lfgw;
    • IDLE_SOUND_CHANCE Link icon

      private static final int IDLE_SOUND_CHANCE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named IDLE_SOUND_CHANCE Lnet/minecraft/block/DryVegetationBlock;IDLE_SOUND_CHANCE:I
      intermediary field_56458 Lnet/minecraft/class_2311;field_56458:I
      official c Ldqb;c:I
    • IDLE_SOUND_BADLANDS_CHANCE_PENALTY Link icon

      private static final int IDLE_SOUND_BADLANDS_CHANCE_PENALTY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named IDLE_SOUND_BADLANDS_CHANCE_PENALTY Lnet/minecraft/block/DryVegetationBlock;IDLE_SOUND_BADLANDS_CHANCE_PENALTY:I
      intermediary field_56459 Lnet/minecraft/class_2311;field_56459:I
      official d Ldqb;d:I
  • Constructor Details Link icon

    • DryVegetationBlock Link icon

      protected DryVegetationBlock(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> Lebp;<init>(Lebp$d;)V
  • Method Details Link icon

    • getCodec Link icon

      public com.mojang.serialization.MapCodec<? extends DryVegetationBlock> 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 Lebp;a()Lcom/mojang/serialization/MapCodec;
    • getOutlineShape Link icon

      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 Lebp;a(Lebq;Ldjn;Liw;Lfgh;)Lfgw;
    • canPlantOnTop Link icon

      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 Ldxa;b(Lebq;Ldjn;Liw;)Z
    • randomDisplayTick Link icon

      public void randomDisplayTick(BlockState state, World world, BlockPos pos, Random random)
      Called randomly on the client. Blocks may override this to spawn particles. Unlike AbstractBlock.randomTick(net.minecraft.block.BlockState, net.minecraft.server.world.ServerWorld, net.minecraft.util.math.BlockPos, net.minecraft.util.math.random.Random) this is not affected by a game rule.
      Overrides:
      randomDisplayTick in class Block
      Mappings:
      Namespace Name Mixin selector
      named randomDisplayTick Lnet/minecraft/block/Block;randomDisplayTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)V
      intermediary method_9496 Lnet/minecraft/class_2248;method_9496(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)V
      official a Ldno;a(Lebq;Ldkj;Liw;Lbai;)V