Class AbstractLichenBlock

All Implemented Interfaces:
ItemConvertible
Direct Known Subclasses:
GlowLichenBlock

public class AbstractLichenBlock
extends Block
Mappings:
Namespace Name
official cby
intermediary net/minecraft/class_5778
named net/minecraft/block/AbstractLichenBlock
  • Field Details

    • UP_SHAPE

      private static final VoxelShape UP_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official a Lcby;a:Ldlg;
      intermediary field_28413 Lnet/minecraft/class_5778;field_28413:Lnet/minecraft/class_265;
      named UP_SHAPE Lnet/minecraft/block/AbstractLichenBlock;UP_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
    • DOWN_SHAPE

      private static final VoxelShape DOWN_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official b Lcby;b:Ldlg;
      intermediary field_28414 Lnet/minecraft/class_5778;field_28414:Lnet/minecraft/class_265;
      named DOWN_SHAPE Lnet/minecraft/block/AbstractLichenBlock;DOWN_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
    • EAST_SHAPE

      private static final VoxelShape EAST_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official c Lcby;c:Ldlg;
      intermediary field_28415 Lnet/minecraft/class_5778;field_28415:Lnet/minecraft/class_265;
      named EAST_SHAPE Lnet/minecraft/block/AbstractLichenBlock;EAST_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
    • WEST_SHAPE

      private static final VoxelShape WEST_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official d Lcby;d:Ldlg;
      intermediary field_28416 Lnet/minecraft/class_5778;field_28416:Lnet/minecraft/class_265;
      named WEST_SHAPE Lnet/minecraft/block/AbstractLichenBlock;WEST_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
    • SOUTH_SHAPE

      private static final VoxelShape SOUTH_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official e Lcby;e:Ldlg;
      intermediary field_28417 Lnet/minecraft/class_5778;field_28417:Lnet/minecraft/class_265;
      named SOUTH_SHAPE Lnet/minecraft/block/AbstractLichenBlock;SOUTH_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
    • NORTH_SHAPE

      private static final VoxelShape NORTH_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official f Lcby;f:Ldlg;
      intermediary field_28418 Lnet/minecraft/class_5778;field_28418:Lnet/minecraft/class_265;
      named NORTH_SHAPE Lnet/minecraft/block/AbstractLichenBlock;NORTH_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
    • FACING_PROPERTIES

      private static final Map<Direction,​BooleanProperty> FACING_PROPERTIES
      Mappings:
      Namespace Name Mixin selector
      official g Lcby;g:Ljava/util/Map;
      intermediary field_28419 Lnet/minecraft/class_5778;field_28419:Ljava/util/Map;
      named FACING_PROPERTIES Lnet/minecraft/block/AbstractLichenBlock;FACING_PROPERTIES:Ljava/util/Map;
    • SHAPES_FOR_DIRECTIONS

      private static final Map<Direction,​VoxelShape> SHAPES_FOR_DIRECTIONS
      Mappings:
      Namespace Name Mixin selector
      official h Lcby;h:Ljava/util/Map;
      intermediary field_28420 Lnet/minecraft/class_5778;field_28420:Ljava/util/Map;
      named SHAPES_FOR_DIRECTIONS Lnet/minecraft/block/AbstractLichenBlock;SHAPES_FOR_DIRECTIONS:Ljava/util/Map;
    • DIRECTIONS

      private static final Direction[] DIRECTIONS
      Mappings:
      Namespace Name Mixin selector
      official i Lcby;i:[Lgc;
      intermediary field_28421 Lnet/minecraft/class_5778;field_28421:[Lnet/minecraft/class_2350;
      named DIRECTIONS Lnet/minecraft/block/AbstractLichenBlock;DIRECTIONS:[Lnet/minecraft/util/math/Direction;
    • SHAPES

      private final ImmutableMap<BlockState,​VoxelShape> SHAPES
      Mappings:
      Namespace Name Mixin selector
      official j Lcby;j:Lcom/google/common/collect/ImmutableMap;
      intermediary field_28422 Lnet/minecraft/class_5778;field_28422:Lcom/google/common/collect/ImmutableMap;
      named SHAPES Lnet/minecraft/block/AbstractLichenBlock;SHAPES:Lcom/google/common/collect/ImmutableMap;
    • hasAllHorizontalDirections

      private final boolean hasAllHorizontalDirections
      Mappings:
      Namespace Name Mixin selector
      official k Lcby;k:Z
      intermediary field_28423 Lnet/minecraft/class_5778;field_28423:Z
      named hasAllHorizontalDirections Lnet/minecraft/block/AbstractLichenBlock;hasAllHorizontalDirections:Z
    • canMirrorX

      private final boolean canMirrorX
      Mappings:
      Namespace Name Mixin selector
      official o Lcby;o:Z
      intermediary field_28424 Lnet/minecraft/class_5778;field_28424:Z
      named canMirrorX Lnet/minecraft/block/AbstractLichenBlock;canMirrorX:Z
    • canMirrorZ

      private final boolean canMirrorZ
      Mappings:
      Namespace Name Mixin selector
      official p Lcby;p:Z
      intermediary field_28425 Lnet/minecraft/class_5778;field_28425:Z
      named canMirrorZ Lnet/minecraft/block/AbstractLichenBlock;canMirrorZ:Z
  • Constructor Details

    • AbstractLichenBlock

      public AbstractLichenBlock​(AbstractBlock.Settings settings)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcin;<init>(Lcin$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

    • canHaveDirection

      protected boolean canHaveDirection​(Direction direction)
      Mappings:
      Namespace Name Mixin selector
      official a Lcby;a(Lgc;)Z
      intermediary method_33369 Lnet/minecraft/class_5778;method_33369(Lnet/minecraft/class_2350;)Z
      named canHaveDirection Lnet/minecraft/block/AbstractLichenBlock;canHaveDirection(Lnet/minecraft/util/math/Direction;)Z
    • appendProperties

      protected void appendProperties​(StateManager.Builder<Block,​BlockState> builder)
      Overrides:
      appendProperties in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lbxp;a(Lcip$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
    • 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 Lcin;a(Lcio;Lgc;Lcio;Lbur;Lfx;Lfx;)Lcio;
      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;
    • getOutlineShape

      public VoxelShape getOutlineShape​(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
      Overrides:
      getOutlineShape in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcin;a(Lcio;Lbtu;Lfx;Ldks;)Ldlg;
      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;
      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;
    • canPlaceAt

      public boolean canPlaceAt​(BlockState state, WorldView world, BlockPos pos)
      Overrides:
      canPlaceAt in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcin;a(Lcio;Lbut;Lfx;)Z
      intermediary method_9558 Lnet/minecraft/class_4970;method_9558(Lnet/minecraft/class_2680;Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;)Z
      named canPlaceAt Lnet/minecraft/block/AbstractBlock;canPlaceAt(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)Z
    • canReplace

      public boolean canReplace​(BlockState state, ItemPlacementContext context)
      Overrides:
      canReplace in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcin;a(Lcio;Lbqq;)Z
      intermediary method_9616 Lnet/minecraft/class_4970;method_9616(Lnet/minecraft/class_2680;Lnet/minecraft/class_1750;)Z
      named canReplace Lnet/minecraft/block/AbstractBlock;canReplace(Lnet/minecraft/block/BlockState;Lnet/minecraft/item/ItemPlacementContext;)Z
    • getPlacementState

      @Nullable public @Nullable BlockState getPlacementState​(ItemPlacementContext ctx)
      Overrides:
      getPlacementState in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lbxp;a(Lbqq;)Lcio;
      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;
    • addDirection

      @Nullable public @Nullable BlockState addDirection​(BlockState state, WorldAccess world, BlockPos pos, Direction direction)
      Mappings:
      Namespace Name Mixin selector
      official a Lcby;a(Lcio;Lbur;Lfx;Lgc;)Lcio;
      intermediary method_33362 Lnet/minecraft/class_5778;method_33362(Lnet/minecraft/class_2680;Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)Lnet/minecraft/class_2680;
      named addDirection Lnet/minecraft/block/AbstractLichenBlock;addDirection(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)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 Lcin;a(Lcio;Lcdh;)Lcio;
      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 Lcin;a(Lcio;Lcbw;)Lcio;
      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;
    • mirror

      private BlockState mirror​(BlockState state, Function<Direction,​Direction> mirror)
      Mappings:
      Namespace Name Mixin selector
      official a Lcby;a(Lcio;Ljava/util/function/Function;)Lcio;
      intermediary method_33367 Lnet/minecraft/class_5778;method_33367(Lnet/minecraft/class_2680;Ljava/util/function/Function;)Lnet/minecraft/class_2680;
      named mirror Lnet/minecraft/block/AbstractLichenBlock;mirror(Lnet/minecraft/block/BlockState;Ljava/util/function/Function;)Lnet/minecraft/block/BlockState;
    • canSpreadRandomly

      public boolean canSpreadRandomly​(BlockState state, ServerWorld world, BlockPos pos, Random random)
      Mappings:
      Namespace Name Mixin selector
      official c Lcby;c(Lcio;Labf;Lfx;Ljava/util/Random;)Z
      intermediary method_33375 Lnet/minecraft/class_5778;method_33375(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Ljava/util/Random;)Z
      named canSpreadRandomly Lnet/minecraft/block/AbstractLichenBlock;canSpreadRandomly(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)Z
    • canSpreadRandomly

      public boolean canSpreadRandomly​(BlockState state, WorldAccess world, BlockPos pos, Direction from, Random random)
      Mappings:
      Namespace Name Mixin selector
      official a Lcby;a(Lcio;Lbur;Lfx;Lgc;Ljava/util/Random;)Z
      intermediary method_33364 Lnet/minecraft/class_5778;method_33364(Lnet/minecraft/class_2680;Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;Ljava/util/Random;)Z
      named canSpreadRandomly Lnet/minecraft/block/AbstractLichenBlock;canSpreadRandomly(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;Ljava/util/Random;)Z
    • canSpreadTo

      public boolean canSpreadTo​(BlockState state, WorldAccess world, BlockPos pos, Direction from, Direction to)
      Mappings:
      Namespace Name Mixin selector
      official a Lcby;a(Lcio;Lbur;Lfx;Lgc;Lgc;)Z
      intermediary method_33363 Lnet/minecraft/class_5778;method_33363(Lnet/minecraft/class_2680;Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;Lnet/minecraft/class_2350;)Z
      named canSpreadTo Lnet/minecraft/block/AbstractLichenBlock;canSpreadTo(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;Lnet/minecraft/util/math/Direction;)Z
    • addDirection

      private boolean addDirection​(WorldAccess world, BlockPos pos, Direction direction)
      Mappings:
      Namespace Name Mixin selector
      official a Lcby;a(Lbur;Lfx;Lgc;)Z
      intermediary method_33359 Lnet/minecraft/class_5778;method_33359(Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)Z
      named addDirection Lnet/minecraft/block/AbstractLichenBlock;addDirection(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Z
    • canGrowIn

      private boolean canGrowIn​(BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official h Lcby;h(Lcio;)Z
      intermediary method_33379 Lnet/minecraft/class_5778;method_33379(Lnet/minecraft/class_2680;)Z
      named canGrowIn Lnet/minecraft/block/AbstractLichenBlock;canGrowIn(Lnet/minecraft/block/BlockState;)Z
    • hasDirection

      private static boolean hasDirection​(BlockState state, Direction direction)
      Mappings:
      Namespace Name Mixin selector
      official a Lcby;a(Lcio;Lgc;)Z
      intermediary method_33366 Lnet/minecraft/class_5778;method_33366(Lnet/minecraft/class_2680;Lnet/minecraft/class_2350;)Z
      named hasDirection Lnet/minecraft/block/AbstractLichenBlock;hasDirection(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Direction;)Z
    • canGrowOn

      private static boolean canGrowOn​(BlockView world, Direction direction, BlockPos pos, BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official a Lcby;a(Lbtu;Lgc;Lfx;Lcio;)Z
      intermediary method_33358 Lnet/minecraft/class_5778;method_33358(Lnet/minecraft/class_1922;Lnet/minecraft/class_2350;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Z
      named canGrowOn Lnet/minecraft/block/AbstractLichenBlock;canGrowOn(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/Direction;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Z
    • isWaterlogged

      private boolean isWaterlogged()
      Mappings:
      Namespace Name Mixin selector
      official e Lcby;e()Z
      intermediary method_33378 Lnet/minecraft/class_5778;method_33378()Z
      named isWaterlogged Lnet/minecraft/block/AbstractLichenBlock;isWaterlogged()Z
    • disableDirection

      private static BlockState disableDirection​(BlockState state, BooleanProperty direction)
      Mappings:
      Namespace Name Mixin selector
      official a Lcby;a(Lcio;Lcjf;)Lcio;
      intermediary method_33365 Lnet/minecraft/class_5778;method_33365(Lnet/minecraft/class_2680;Lnet/minecraft/class_2746;)Lnet/minecraft/class_2680;
      named disableDirection Lnet/minecraft/block/AbstractLichenBlock;disableDirection(Lnet/minecraft/block/BlockState;Lnet/minecraft/state/property/BooleanProperty;)Lnet/minecraft/block/BlockState;
    • getProperty

      public static BooleanProperty getProperty​(Direction direction)
      Mappings:
      Namespace Name Mixin selector
      official b Lcby;b(Lgc;)Lcjf;
      intermediary method_33374 Lnet/minecraft/class_5778;method_33374(Lnet/minecraft/class_2350;)Lnet/minecraft/class_2746;
      named getProperty Lnet/minecraft/block/AbstractLichenBlock;getProperty(Lnet/minecraft/util/math/Direction;)Lnet/minecraft/state/property/BooleanProperty;
    • withNoDirections

      private static BlockState withNoDirections​(StateManager<Block,​BlockState> stateManager)
      Mappings:
      Namespace Name Mixin selector
      official a Lcby;a(Lcip;)Lcio;
      intermediary method_33368 Lnet/minecraft/class_5778;method_33368(Lnet/minecraft/class_2689;)Lnet/minecraft/class_2680;
      named withNoDirections Lnet/minecraft/block/AbstractLichenBlock;withNoDirections(Lnet/minecraft/state/StateManager;)Lnet/minecraft/block/BlockState;
    • getShapeForState

      private static VoxelShape getShapeForState​(BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official m Lcby;m(Lcio;)Ldlg;
      intermediary method_33380 Lnet/minecraft/class_5778;method_33380(Lnet/minecraft/class_2680;)Lnet/minecraft/class_265;
      named getShapeForState Lnet/minecraft/block/AbstractLichenBlock;getShapeForState(Lnet/minecraft/block/BlockState;)Lnet/minecraft/util/shape/VoxelShape;
    • hasAnyDirection

      private static boolean hasAnyDirection​(BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official n Lcby;n(Lcio;)Z
      intermediary method_33381 Lnet/minecraft/class_5778;method_33381(Lnet/minecraft/class_2680;)Z
      named hasAnyDirection Lnet/minecraft/block/AbstractLichenBlock;hasAnyDirection(Lnet/minecraft/block/BlockState;)Z
    • isNotFullBlock

      private static boolean isNotFullBlock​(BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official o Lcby;o(Lcio;)Z
      intermediary method_33382 Lnet/minecraft/class_5778;method_33382(Lnet/minecraft/class_2680;)Z
      named isNotFullBlock Lnet/minecraft/block/AbstractLichenBlock;isNotFullBlock(Lnet/minecraft/block/BlockState;)Z