Class ButtonBlock

All Implemented Interfaces:
ItemConvertible, ToggleableFeature

public class ButtonBlock extends WallMountedBlock
Mappings:
Namespace Name
official cnb
intermediary net/minecraft/class_2269
named net/minecraft/block/ButtonBlock
  • Field Details

    • POWERED

      public static final BooleanProperty POWERED
      Mappings:
      Namespace Name Mixin selector
      official a Lcnb;a:Lczk;
      intermediary field_10729 Lnet/minecraft/class_2269;field_10729:Lnet/minecraft/class_2746;
      named POWERED Lnet/minecraft/block/ButtonBlock;POWERED:Lnet/minecraft/state/property/BooleanProperty;
    • field_31040

      private static final int field_31040
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official K Lcnb;K:I
      intermediary field_31040 Lnet/minecraft/class_2269;field_31040:I
      named field_31040 Lnet/minecraft/block/ButtonBlock;field_31040:I
    • field_31041

      private static final int field_31041
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official L Lcnb;L:I
      intermediary field_31041 Lnet/minecraft/class_2269;field_31041:I
      named field_31041 Lnet/minecraft/block/ButtonBlock;field_31041:I
    • field_31042

      protected static final int field_31042
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lcnb;b:I
      intermediary field_31042 Lnet/minecraft/class_2269;field_31042:I
      named field_31042 Lnet/minecraft/block/ButtonBlock;field_31042:I
    • field_31043

      protected static final int field_31043
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Lcnb;c:I
      intermediary field_31043 Lnet/minecraft/class_2269;field_31043:I
      named field_31043 Lnet/minecraft/block/ButtonBlock;field_31043:I
    • CEILING_X_SHAPE

      protected static final VoxelShape CEILING_X_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official d Lcnb;d:Leax;
      intermediary field_10721 Lnet/minecraft/class_2269;field_10721:Lnet/minecraft/class_265;
      named CEILING_X_SHAPE Lnet/minecraft/block/ButtonBlock;CEILING_X_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
    • CEILING_Z_SHAPE

      protected static final VoxelShape CEILING_Z_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official e Lcnb;e:Leax;
      intermediary field_10727 Lnet/minecraft/class_2269;field_10727:Lnet/minecraft/class_265;
      named CEILING_Z_SHAPE Lnet/minecraft/block/ButtonBlock;CEILING_Z_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
    • FLOOR_X_SHAPE

      protected static final VoxelShape FLOOR_X_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official f Lcnb;f:Leax;
      intermediary field_10723 Lnet/minecraft/class_2269;field_10723:Lnet/minecraft/class_265;
      named FLOOR_X_SHAPE Lnet/minecraft/block/ButtonBlock;FLOOR_X_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
    • FLOOR_Z_SHAPE

      protected static final VoxelShape FLOOR_Z_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official g Lcnb;g:Leax;
      intermediary field_10716 Lnet/minecraft/class_2269;field_10716:Lnet/minecraft/class_265;
      named FLOOR_Z_SHAPE Lnet/minecraft/block/ButtonBlock;FLOOR_Z_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
    • NORTH_SHAPE

      protected static final VoxelShape NORTH_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official h Lcnb;h:Leax;
      intermediary field_10728 Lnet/minecraft/class_2269;field_10728:Lnet/minecraft/class_265;
      named NORTH_SHAPE Lnet/minecraft/block/ButtonBlock;NORTH_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
    • SOUTH_SHAPE

      protected static final VoxelShape SOUTH_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official i Lcnb;i:Leax;
      intermediary field_10715 Lnet/minecraft/class_2269;field_10715:Lnet/minecraft/class_265;
      named SOUTH_SHAPE Lnet/minecraft/block/ButtonBlock;SOUTH_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
    • WEST_SHAPE

      protected static final VoxelShape WEST_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official j Lcnb;j:Leax;
      intermediary field_10731 Lnet/minecraft/class_2269;field_10731:Lnet/minecraft/class_265;
      named WEST_SHAPE Lnet/minecraft/block/ButtonBlock;WEST_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
    • EAST_SHAPE

      protected static final VoxelShape EAST_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official k Lcnb;k:Leax;
      intermediary field_10720 Lnet/minecraft/class_2269;field_10720:Lnet/minecraft/class_265;
      named EAST_SHAPE Lnet/minecraft/block/ButtonBlock;EAST_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
    • CEILING_X_PRESSED_SHAPE

      protected static final VoxelShape CEILING_X_PRESSED_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official l Lcnb;l:Leax;
      intermediary field_10717 Lnet/minecraft/class_2269;field_10717:Lnet/minecraft/class_265;
      named CEILING_X_PRESSED_SHAPE Lnet/minecraft/block/ButtonBlock;CEILING_X_PRESSED_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
    • CEILING_Z_PRESSED_SHAPE

      protected static final VoxelShape CEILING_Z_PRESSED_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official m Lcnb;m:Leax;
      intermediary field_10726 Lnet/minecraft/class_2269;field_10726:Lnet/minecraft/class_265;
      named CEILING_Z_PRESSED_SHAPE Lnet/minecraft/block/ButtonBlock;CEILING_Z_PRESSED_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
    • FLOOR_X_PRESSED_SHAPE

      protected static final VoxelShape FLOOR_X_PRESSED_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official n Lcnb;n:Leax;
      intermediary field_10722 Lnet/minecraft/class_2269;field_10722:Lnet/minecraft/class_265;
      named FLOOR_X_PRESSED_SHAPE Lnet/minecraft/block/ButtonBlock;FLOOR_X_PRESSED_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
    • FLOOR_Z_PRESSED_SHAPE

      protected static final VoxelShape FLOOR_Z_PRESSED_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official E Lcnb;E:Leax;
      intermediary field_10730 Lnet/minecraft/class_2269;field_10730:Lnet/minecraft/class_265;
      named FLOOR_Z_PRESSED_SHAPE Lnet/minecraft/block/ButtonBlock;FLOOR_Z_PRESSED_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
    • NORTH_PRESSED_SHAPE

      protected static final VoxelShape NORTH_PRESSED_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official F Lcnb;F:Leax;
      intermediary field_10719 Lnet/minecraft/class_2269;field_10719:Lnet/minecraft/class_265;
      named NORTH_PRESSED_SHAPE Lnet/minecraft/block/ButtonBlock;NORTH_PRESSED_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
    • SOUTH_PRESSED_SHAPE

      protected static final VoxelShape SOUTH_PRESSED_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official G Lcnb;G:Leax;
      intermediary field_10724 Lnet/minecraft/class_2269;field_10724:Lnet/minecraft/class_265;
      named SOUTH_PRESSED_SHAPE Lnet/minecraft/block/ButtonBlock;SOUTH_PRESSED_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
    • WEST_PRESSED_SHAPE

      protected static final VoxelShape WEST_PRESSED_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official H Lcnb;H:Leax;
      intermediary field_10732 Lnet/minecraft/class_2269;field_10732:Lnet/minecraft/class_265;
      named WEST_PRESSED_SHAPE Lnet/minecraft/block/ButtonBlock;WEST_PRESSED_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
    • EAST_PRESSED_SHAPE

      protected static final VoxelShape EAST_PRESSED_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official I Lcnb;I:Leax;
      intermediary field_10718 Lnet/minecraft/class_2269;field_10718:Lnet/minecraft/class_265;
      named EAST_PRESSED_SHAPE Lnet/minecraft/block/ButtonBlock;EAST_PRESSED_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
    • clickOffSound

      private final SoundEvent clickOffSound
      Mappings:
      Namespace Name Mixin selector
      official M Lcnb;M:Laln;
      intermediary field_40296 Lnet/minecraft/class_2269;field_40296:Lnet/minecraft/class_3414;
      named clickOffSound Lnet/minecraft/block/ButtonBlock;clickOffSound:Lnet/minecraft/sound/SoundEvent;
    • clickOnSound

      private final SoundEvent clickOnSound
      Mappings:
      Namespace Name Mixin selector
      official N Lcnb;N:Laln;
      intermediary field_40297 Lnet/minecraft/class_2269;field_40297:Lnet/minecraft/class_3414;
      named clickOnSound Lnet/minecraft/block/ButtonBlock;clickOnSound:Lnet/minecraft/sound/SoundEvent;
    • pressTicks

      private final int pressTicks
      Mappings:
      Namespace Name Mixin selector
      official O Lcnb;O:I
      intermediary field_40298 Lnet/minecraft/class_2269;field_40298:I
      named pressTicks Lnet/minecraft/block/ButtonBlock;pressTicks:I
    • wooden

      private final boolean wooden
      Mappings:
      Namespace Name Mixin selector
      official P Lcnb;P:Z
      intermediary field_40299 Lnet/minecraft/class_2269;field_40299:Z
      named wooden Lnet/minecraft/block/ButtonBlock;wooden:Z
  • Constructor Details

    • ButtonBlock

      protected ButtonBlock(AbstractBlock.Settings settings, int pressTicks, boolean wooden, SoundEvent clickOffSound, SoundEvent clickOnSound)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcnb;<init>(Lcys$c;IZLaln;Laln;)V
      intermediary <init> Lnet/minecraft/class_2269;<init>(Lnet/minecraft/class_4970$class_2251;IZLnet/minecraft/class_3414;Lnet/minecraft/class_3414;)V
      named <init> Lnet/minecraft/block/ButtonBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;IZLnet/minecraft/sound/SoundEvent;Lnet/minecraft/sound/SoundEvent;)V
  • Method Details