Class MushroomBlock

All Implemented Interfaces:
ItemConvertible

public class MushroomBlock extends Block
Mappings:
Namespace Name
official cmj
intermediary net/minecraft/class_2381
named net/minecraft/block/MushroomBlock
  • Field Details

    • NORTH

      public static final BooleanProperty NORTH
      Mappings:
      Namespace Name Mixin selector
      official a Lcmj;a:Lcvi;
      intermediary field_11171 Lnet/minecraft/class_2381;field_11171:Lnet/minecraft/class_2746;
      named NORTH Lnet/minecraft/block/MushroomBlock;NORTH:Lnet/minecraft/state/property/BooleanProperty;
    • EAST

      public static final BooleanProperty EAST
      Mappings:
      Namespace Name Mixin selector
      official b Lcmj;b:Lcvi;
      intermediary field_11172 Lnet/minecraft/class_2381;field_11172:Lnet/minecraft/class_2746;
      named EAST Lnet/minecraft/block/MushroomBlock;EAST:Lnet/minecraft/state/property/BooleanProperty;
    • SOUTH

      public static final BooleanProperty SOUTH
      Mappings:
      Namespace Name Mixin selector
      official c Lcmj;c:Lcvi;
      intermediary field_11170 Lnet/minecraft/class_2381;field_11170:Lnet/minecraft/class_2746;
      named SOUTH Lnet/minecraft/block/MushroomBlock;SOUTH:Lnet/minecraft/state/property/BooleanProperty;
    • WEST

      public static final BooleanProperty WEST
      Mappings:
      Namespace Name Mixin selector
      official d Lcmj;d:Lcvi;
      intermediary field_11167 Lnet/minecraft/class_2381;field_11167:Lnet/minecraft/class_2746;
      named WEST Lnet/minecraft/block/MushroomBlock;WEST:Lnet/minecraft/state/property/BooleanProperty;
    • UP

      public static final BooleanProperty UP
      Mappings:
      Namespace Name Mixin selector
      official e Lcmj;e:Lcvi;
      intermediary field_11166 Lnet/minecraft/class_2381;field_11166:Lnet/minecraft/class_2746;
      named UP Lnet/minecraft/block/MushroomBlock;UP:Lnet/minecraft/state/property/BooleanProperty;
    • DOWN

      public static final BooleanProperty DOWN
      Mappings:
      Namespace Name Mixin selector
      official f Lcmj;f:Lcvi;
      intermediary field_11169 Lnet/minecraft/class_2381;field_11169:Lnet/minecraft/class_2746;
      named DOWN Lnet/minecraft/block/MushroomBlock;DOWN:Lnet/minecraft/state/property/BooleanProperty;
    • FACING_PROPERTIES

      private static final Map<Direction,BooleanProperty> FACING_PROPERTIES
      Mappings:
      Namespace Name Mixin selector
      official g Lcmj;g:Ljava/util/Map;
      intermediary field_11168 Lnet/minecraft/class_2381;field_11168:Ljava/util/Map;
      named FACING_PROPERTIES Lnet/minecraft/block/MushroomBlock;FACING_PROPERTIES:Ljava/util/Map;
  • Constructor Details

    • MushroomBlock

      public MushroomBlock(AbstractBlock.Settings settings)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcuq;<init>(Lcuq$c;)V
      intermediary <init> Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)V
      named <init> Lnet/minecraft/block/AbstractBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;)V
  • Method Details

    • getPlacementState

      public BlockState getPlacementState(ItemPlacementContext ctx)
      Overrides:
      getPlacementState in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lciw;a(Lcca;)Lcur;
      intermediary method_9605 Lnet/minecraft/class_2248;method_9605(Lnet/minecraft/class_1750;)Lnet/minecraft/class_2680;
      named getPlacementState Lnet/minecraft/block/Block;getPlacementState(Lnet/minecraft/item/ItemPlacementContext;)Lnet/minecraft/block/BlockState;
    • getStateForNeighborUpdate

      public BlockState getStateForNeighborUpdate(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos)
      Gets the possibly updated block state of this block when a neighboring block is updated.
      Overrides:
      getStateForNeighborUpdate in class AbstractBlock
      Parameters:
      state - the state of this block
      direction - the direction from this block to the neighbor
      neighborState - the state of the updated neighbor block
      world - the world
      pos - the position of this block
      neighborPos - the position of the neighbor block
      Returns:
      the new state of this block
      Mappings:
      Namespace Name Mixin selector
      official a Lcuq;a(Lcur;Lgy;Lcur;Lcgb;Lgt;Lgt;)Lcur;
      intermediary method_9559 Lnet/minecraft/class_4970;method_9559(Lnet/minecraft/class_2680;Lnet/minecraft/class_2350;Lnet/minecraft/class_2680;Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;
      named getStateForNeighborUpdate Lnet/minecraft/block/AbstractBlock;getStateForNeighborUpdate(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Direction;Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
    • rotate

      public BlockState rotate(BlockState state, BlockRotation rotation)
      Applies a block rotation to a block state.

      By default, this returns the provided block state.

      Overrides:
      rotate in class AbstractBlock
      Returns:
      the rotated block state
      Mappings:
      Namespace Name Mixin selector
      official a Lcuq;a(Lcur;Lcoz;)Lcur;
      intermediary method_9598 Lnet/minecraft/class_4970;method_9598(Lnet/minecraft/class_2680;Lnet/minecraft/class_2470;)Lnet/minecraft/class_2680;
      named rotate Lnet/minecraft/block/AbstractBlock;rotate(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockRotation;)Lnet/minecraft/block/BlockState;
    • mirror

      public BlockState mirror(BlockState state, BlockMirror mirror)
      Overrides:
      mirror in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcuq;a(Lcur;Lcnk;)Lcur;
      intermediary method_9569 Lnet/minecraft/class_4970;method_9569(Lnet/minecraft/class_2680;Lnet/minecraft/class_2415;)Lnet/minecraft/class_2680;
      named mirror Lnet/minecraft/block/AbstractBlock;mirror(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockMirror;)Lnet/minecraft/block/BlockState;
    • appendProperties

      protected void appendProperties(StateManager.Builder<Block,BlockState> builder)
      Overrides:
      appendProperties in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lciw;a(Lcus$a;)V
      intermediary method_9515 Lnet/minecraft/class_2248;method_9515(Lnet/minecraft/class_2689$class_2690;)V
      named appendProperties Lnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)V