Class HorizontalFacingBlock

All Implemented Interfaces:
ItemConvertible, ToggleableFeature
Direct Known Subclasses:
AbstractRedstoneGateBlock, BedBlock, BigDripleafBlock, BigDripleafStemBlock, CarvedPumpkinBlock, CocoaBlock, FenceGateBlock, GlazedTerracottaBlock, LoomBlock, TrapdoorBlock, WallMountedBlock

public abstract class HorizontalFacingBlock extends Block
Mappings:
Namespace Name
named net/minecraft/block/HorizontalFacingBlock
intermediary net/minecraft/class_2383
official doj
  • Field Details

    • FACING

      public static final EnumProperty<Direction> FACING
      Mappings:
      Namespace Name Mixin selector
      named FACING Lnet/minecraft/block/HorizontalFacingBlock;FACING:Lnet/minecraft/state/property/EnumProperty;
      intermediary field_11177 Lnet/minecraft/class_2383;field_11177:Lnet/minecraft/class_2754;
      official aF Ldoj;aF:Ldyr;
  • Constructor Details

    • HorizontalFacingBlock

      protected HorizontalFacingBlock(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> Ldxt;<init>(Ldxt$d;)V
  • Method Details

    • getCodec

      protected abstract com.mojang.serialization.MapCodec<? extends HorizontalFacingBlock> getCodec()
      Overrides:
      getCodec in class Block
      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 Ldxt;a()Lcom/mojang/serialization/MapCodec;
    • rotate

      protected BlockState rotate(BlockState state, BlockRotation rotation)
      Returns state rotated by rotation.

      By default, this returns the provided block state.

      Overrides:
      rotate in class AbstractBlock
      Returns:
      state rotated by rotation
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named rotate Lnet/minecraft/block/AbstractBlock;rotate(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockRotation;)Lnet/minecraft/block/BlockState;
      intermediary method_9598 Lnet/minecraft/class_4970;method_9598(Lnet/minecraft/class_2680;Lnet/minecraft/class_2470;)Lnet/minecraft/class_2680;
      official a Ldxt;a(Ldxu;Ldrb;)Ldxu;
    • mirror

      protected BlockState mirror(BlockState state, BlockMirror mirror)
      Returns state mirrored by mirror.

      By default, this returns the provided block state.

      Overrides:
      mirror in class AbstractBlock
      Returns:
      state mirrored by mirror
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named mirror Lnet/minecraft/block/AbstractBlock;mirror(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockMirror;)Lnet/minecraft/block/BlockState;
      intermediary method_9569 Lnet/minecraft/class_4970;method_9569(Lnet/minecraft/class_2680;Lnet/minecraft/class_2415;)Lnet/minecraft/class_2680;
      official a Ldxt;a(Ldxu;Ldpk;)Ldxu;