Class MushroomBlock

All Implemented Interfaces:
Growable

public class MushroomBlock extends PlantBlock implements Growable
Mappings:
Namespace Name
official aox
intermediary net/minecraft/class_160
named net/minecraft/block/MushroomBlock
  • Field Details

    • field_12713

      protected static final Box field_12713
      Mappings:
      Namespace Name Mixin selector
      official a Laox;a:Lbdt;
      intermediary field_12713 Lnet/minecraft/class_160;field_12713:Lnet/minecraft/class_231;
      named field_12713 Lnet/minecraft/block/MushroomBlock;field_12713:Lnet/minecraft/util/math/Box;
  • Constructor Details

    • MushroomBlock

      protected MushroomBlock()
  • Method Details

    • getCollisionBox

      public Box getCollisionBox(BlockState state, BlockView view, BlockPos pos)
      Overrides:
      getCollisionBox in class PlantBlock
      Mappings:
      Namespace Name Mixin selector
      official b Lalu;b(Latl;Lajw;Lco;)Lbdt;
      intermediary method_11554 Lnet/minecraft/class_197;method_11554(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Lnet/minecraft/class_231;
      named getCollisionBox Lnet/minecraft/block/Block;getCollisionBox(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/Box;
    • scheduledTick

      public void scheduledTick(World world, BlockPos pos, BlockState state, Random rand)
      Runs when the block is updated as per a schedule
      Overrides:
      scheduledTick in class PlantBlock
      Parameters:
      world - The world that the block is placed in
      pos - The block's position
      state - The block's BlockState
      rand - Random object
      Mappings:
      Namespace Name Mixin selector
      official b Lalu;b(Lajs;Lco;Latl;Ljava/util/Random;)V
      intermediary method_8661 Lnet/minecraft/class_197;method_8661(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Ljava/util/Random;)V
      named scheduledTick Lnet/minecraft/block/Block;scheduledTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Ljava/util/Random;)V
    • canBePlacedAtPos

      public boolean canBePlacedAtPos(World world, BlockPos pos)
      Returns whether the current block can be placed at a certain BlockPos
      Overrides:
      canBePlacedAtPos in class PlantBlock
      Returns:
      Whether the current block can be placed at a BlockPos
      Mappings:
      Namespace Name Mixin selector
      official a Lalu;a(Lajs;Lco;)Z
      intermediary method_8673 Lnet/minecraft/class_197;method_8673(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Z
      named canBePlacedAtPos Lnet/minecraft/block/Block;canBePlacedAtPos(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
    • canBePlacedOn

      protected boolean canBePlacedOn(BlockState state)
      Overrides:
      canBePlacedOn in class PlantBlock
      Mappings:
      Namespace Name Mixin selector
      official i Lama;i(Latl;)Z
      intermediary method_11579 Lnet/minecraft/class_1754;method_11579(Lnet/minecraft/class_2232;)Z
      named canBePlacedOn Lnet/minecraft/block/PlantBlock;canBePlacedOn(Lnet/minecraft/block/BlockState;)Z
    • method_8691

      public boolean method_8691(World world, BlockPos pos, BlockState state)
      Overrides:
      method_8691 in class PlantBlock
      Mappings:
      Namespace Name Mixin selector
      official f Lama;f(Lajs;Lco;Latl;)Z
      intermediary method_8691 Lnet/minecraft/class_1754;method_8691(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Z
      named method_8691 Lnet/minecraft/block/PlantBlock;method_8691(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Z
    • method_8832

      public boolean method_8832(World world, BlockPos blockPos, BlockState blockState, Random random)
      Mappings:
      Namespace Name Mixin selector
      official c Laox;c(Lajs;Lco;Latl;Ljava/util/Random;)Z
      intermediary method_8832 Lnet/minecraft/class_160;method_8832(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Ljava/util/Random;)Z
      named method_8832 Lnet/minecraft/block/MushroomBlock;method_8832(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Ljava/util/Random;)Z
    • canGrow

      public boolean canGrow(World world, BlockPos pos, BlockState state, boolean bl)
      Specified by:
      canGrow in interface Growable
      Mappings:
      Namespace Name Mixin selector
      official a Lalx;a(Lajs;Lco;Latl;Z)Z
      intermediary method_6460 Lnet/minecraft/class_1753;method_6460(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Z)Z
      named canGrow Lnet/minecraft/block/Growable;canGrow(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Z)Z
    • canBeFertilized

      public boolean canBeFertilized(World world, Random random, BlockPos pos, BlockState state)
      Specified by:
      canBeFertilized in interface Growable
      Mappings:
      Namespace Name Mixin selector
      official a Lalx;a(Lajs;Ljava/util/Random;Lco;Latl;)Z
      intermediary method_6461 Lnet/minecraft/class_1753;method_6461(Lnet/minecraft/class_1150;Ljava/util/Random;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Z
      named canBeFertilized Lnet/minecraft/block/Growable;canBeFertilized(Lnet/minecraft/world/World;Ljava/util/Random;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Z
    • grow

      public void grow(World world, Random random, BlockPos pos, BlockState state)
      Specified by:
      grow in interface Growable
      Mappings:
      Namespace Name Mixin selector
      official b Lalx;b(Lajs;Ljava/util/Random;Lco;Latl;)V
      intermediary method_6462 Lnet/minecraft/class_1753;method_6462(Lnet/minecraft/class_1150;Ljava/util/Random;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)V
      named grow Lnet/minecraft/block/Growable;grow(Lnet/minecraft/world/World;Ljava/util/Random;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V