Class PillarBlock

All Implemented Interfaces:
ItemConvertible, ToggleableFeature
Direct Known Subclasses:
ChainBlock, HayBlock

public class PillarBlock extends Block
Mappings:
Namespace Name
official ddb
intermediary net/minecraft/class_2465
named net/minecraft/block/PillarBlock
  • Field Details

    • CODEC

      public static final com.mojang.serialization.MapCodec<PillarBlock> CODEC
      Mappings:
      Namespace Name Mixin selector
      official h Lddb;h:Lcom/mojang/serialization/MapCodec;
      intermediary field_46430 Lnet/minecraft/class_2465;field_46430:Lcom/mojang/serialization/MapCodec;
      named CODEC Lnet/minecraft/block/PillarBlock;CODEC:Lcom/mojang/serialization/MapCodec;
    • AXIS

      public static final EnumProperty<Direction.Axis> AXIS
      Mappings:
      Namespace Name Mixin selector
      official i Lddb;i:Ldkf;
      intermediary field_11459 Lnet/minecraft/class_2465;field_11459:Lnet/minecraft/class_2754;
      named AXIS Lnet/minecraft/block/PillarBlock;AXIS:Lnet/minecraft/state/property/EnumProperty;
  • Constructor Details

    • PillarBlock

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

    • getCodec

      public com.mojang.serialization.MapCodec<? extends PillarBlock> getCodec()
      Overrides:
      getCodec in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Ldjg;a()Lcom/mojang/serialization/MapCodec;
      intermediary method_53969 Lnet/minecraft/class_4970;method_53969()Lcom/mojang/serialization/MapCodec;
      named getCodec Lnet/minecraft/block/AbstractBlock;getCodec()Lcom/mojang/serialization/MapCodec;
    • rotate

      public 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
      Mappings:
      Namespace Name Mixin selector
      official a Ldjg;a(Ldjh;Lddc;)Ldjh;
      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;
    • changeRotation

      public static BlockState changeRotation(BlockState state, BlockRotation rotation)
      Mappings:
      Namespace Name Mixin selector
      official b Lddb;b(Ldjh;Lddc;)Ldjh;
      intermediary method_36377 Lnet/minecraft/class_2465;method_36377(Lnet/minecraft/class_2680;Lnet/minecraft/class_2470;)Lnet/minecraft/class_2680;
      named changeRotation Lnet/minecraft/block/PillarBlock;changeRotation(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockRotation;)Lnet/minecraft/block/BlockState;
    • appendProperties

      protected void appendProperties(StateManager.Builder<Block,BlockState> builder)
      Appends block state properties to this block. To use this, override and call StateManager.Builder.add(net.minecraft.state.property.Property<?>[]) inside the method. See Properties for the list of pre-defined properties.
      Overrides:
      appendProperties in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lcwq;a(Ldji$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
    • getPlacementState

      public BlockState getPlacementState(ItemPlacementContext ctx)
      Overrides:
      getPlacementState in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lcwq;a(Lcph;)Ldjh;
      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;