Class WallMountedBlock

All Implemented Interfaces:
ItemConvertible
Direct Known Subclasses:
AbstractButtonBlock, GrindstoneBlock, LeverBlock

public class WallMountedBlock extends HorizontalFacingBlock
Mappings:
Namespace Name
official clf
intermediary net/minecraft/class_2341
named net/minecraft/block/WallMountedBlock
  • Field Details

    • FACE

      public static final EnumProperty<WallMountLocation> FACE
      Mappings:
      Namespace Name Mixin selector
      official J Lclf;J:Lcvp;
      intermediary field_11007 Lnet/minecraft/class_2341;field_11007:Lnet/minecraft/class_2754;
      named FACE Lnet/minecraft/block/WallMountedBlock;FACE:Lnet/minecraft/state/property/EnumProperty;
  • Constructor Details

    • WallMountedBlock

      protected WallMountedBlock(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

    • canPlaceAt

      public boolean canPlaceAt(BlockState state, WorldView world, BlockPos pos)
      Overrides:
      canPlaceAt in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcuq;a(Lcur;Lcgd;Lgt;)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
    • canPlaceAt

      public static boolean canPlaceAt(WorldView world, BlockPos pos, Direction direction)
      Mappings:
      Namespace Name Mixin selector
      official b Lclf;b(Lcgd;Lgt;Lgy;)Z
      intermediary method_20046 Lnet/minecraft/class_2341;method_20046(Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)Z
      named canPlaceAt Lnet/minecraft/block/WallMountedBlock;canPlaceAt(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Z
    • getPlacementState

      @Nullable public @Nullable 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;
    • getDirection

      protected static Direction getDirection(BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official h Lclf;h(Lcur;)Lgy;
      intermediary method_10119 Lnet/minecraft/class_2341;method_10119(Lnet/minecraft/class_2680;)Lnet/minecraft/class_2350;
      named getDirection Lnet/minecraft/block/WallMountedBlock;getDirection(Lnet/minecraft/block/BlockState;)Lnet/minecraft/util/math/Direction;