Class RepeaterBlock


public class RepeaterBlock extends AbstractRedstoneGateBlock
Mappings:
Namespace Name
official aqg
intermediary net/minecraft/class_125
named net/minecraft/block/RepeaterBlock
  • Field Details

    • LOCKED

      public static final BooleanProperty LOCKED
      Mappings:
      Namespace Name Mixin selector
      official a Laqg;a:Latx;
      intermediary field_9639 Lnet/minecraft/class_125;field_9639:Lnet/minecraft/class_2243;
      named LOCKED Lnet/minecraft/block/RepeaterBlock;LOCKED:Lnet/minecraft/state/property/BooleanProperty;
    • DELAY

      public static final IntProperty DELAY
      Mappings:
      Namespace Name Mixin selector
      official b Laqg;b:Laua;
      intermediary field_9640 Lnet/minecraft/class_125;field_9640:Lnet/minecraft/class_2246;
      named DELAY Lnet/minecraft/block/RepeaterBlock;DELAY:Lnet/minecraft/state/property/IntProperty;
  • Constructor Details

    • RepeaterBlock

      protected RepeaterBlock(boolean locked)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lamt;<init>(Z)V
      intermediary <init> Lnet/minecraft/class_1449;<init>(Z)V
      named <init> Lnet/minecraft/block/AbstractRedstoneGateBlock;<init>(Z)V
  • Method Details

    • getTranslatedName

      public String getTranslatedName()
      Translates and returns the translation key
      Overrides:
      getTranslatedName in class Block
      Returns:
      Translated name
      Mappings:
      Namespace Name Mixin selector
      official c Lalu;c()Ljava/lang/String;
      intermediary method_480 Lnet/minecraft/class_197;method_480()Ljava/lang/String;
      named getTranslatedName Lnet/minecraft/block/Block;getTranslatedName()Ljava/lang/String;
    • getBlockState

      public BlockState getBlockState(BlockState state, BlockView view, BlockPos pos)
      Returns the current block's blockstate at a certain position
      Overrides:
      getBlockState in class Block
      Parameters:
      state - The original blockstate
      view - BlockView instance
      pos - The block's position
      Returns:
      state
      Mappings:
      Namespace Name Mixin selector
      official c Lalu;c(Latl;Lajw;Lco;)Latl;
      intermediary method_8656 Lnet/minecraft/class_197;method_8656(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Lnet/minecraft/class_2232;
      named getBlockState Lnet/minecraft/block/Block;getBlockState(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
    • withRotation

      public BlockState withRotation(BlockState state, BlockRotation rotation)
      Overrides:
      withRotation in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lalu;a(Latl;Laqi;)Latl;
      intermediary method_11556 Lnet/minecraft/class_197;method_11556(Lnet/minecraft/class_2232;Lnet/minecraft/class_2734;)Lnet/minecraft/class_2232;
      named withRotation Lnet/minecraft/block/Block;withRotation(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockRotation;)Lnet/minecraft/block/BlockState;
    • withMirror

      public BlockState withMirror(BlockState state, BlockMirror mirror)
      Overrides:
      withMirror in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lalu;a(Latl;Laou;)Latl;
      intermediary method_11555 Lnet/minecraft/class_197;method_11555(Lnet/minecraft/class_2232;Lnet/minecraft/class_2727;)Lnet/minecraft/class_2232;
      named withMirror Lnet/minecraft/block/Block;withMirror(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockMirror;)Lnet/minecraft/block/BlockState;
    • use

      public boolean use(World world, BlockPos pos, BlockState state, PlayerEntity player, Hand hand, Direction direction, float float2, float float3, float float4)
      Overrides:
      use in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lalu;a(Lajs;Lco;Latl;Laay;Lri;Lcv;FFF)Z
      intermediary method_421 Lnet/minecraft/class_197;method_421(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Lnet/minecraft/class_988;Lnet/minecraft/class_2961;Lnet/minecraft/class_1354;FFF)Z
      named use Lnet/minecraft/block/Block;use(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;Lnet/minecraft/util/math/Direction;FFF)Z
    • method_8725

      protected int method_8725(BlockState blockState)
      Specified by:
      method_8725 in class AbstractRedstoneGateBlock
      Mappings:
      Namespace Name Mixin selector
      official i Lamt;i(Latl;)I
      intermediary method_8725 Lnet/minecraft/class_1449;method_8725(Lnet/minecraft/class_2232;)I
      named method_8725 Lnet/minecraft/block/AbstractRedstoneGateBlock;method_8725(Lnet/minecraft/block/BlockState;)I
    • method_8728

      protected BlockState method_8728(BlockState blockState)
      Specified by:
      method_8728 in class AbstractRedstoneGateBlock
      Mappings:
      Namespace Name Mixin selector
      official z Lamt;z(Latl;)Latl;
      intermediary method_8728 Lnet/minecraft/class_1449;method_8728(Lnet/minecraft/class_2232;)Lnet/minecraft/class_2232;
      named method_8728 Lnet/minecraft/block/AbstractRedstoneGateBlock;method_8728(Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/BlockState;
    • method_8733

      protected BlockState method_8733(BlockState blockState)
      Specified by:
      method_8733 in class AbstractRedstoneGateBlock
      Mappings:
      Namespace Name Mixin selector
      official A Lamt;A(Latl;)Latl;
      intermediary method_8733 Lnet/minecraft/class_1449;method_8733(Lnet/minecraft/class_2232;)Lnet/minecraft/class_2232;
      named method_8733 Lnet/minecraft/block/AbstractRedstoneGateBlock;method_8733(Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/BlockState;
    • getDropItem

      public Item getDropItem(BlockState blockState, Random random, int state)
      Returns the item that must be dropped when the block is broken
      Overrides:
      getDropItem in class Block
      Parameters:
      blockState - The block's BlockState
      random - Random object
      state - State
      Returns:
      The Item that drops after the block breaks
      Mappings:
      Namespace Name Mixin selector
      official a Lalu;a(Latl;Ljava/util/Random;I)Lafh;
      intermediary method_398 Lnet/minecraft/class_197;method_398(Lnet/minecraft/class_2232;Ljava/util/Random;I)Lnet/minecraft/class_1069;
      named getDropItem Lnet/minecraft/block/Block;getDropItem(Lnet/minecraft/block/BlockState;Ljava/util/Random;I)Lnet/minecraft/item/Item;
    • method_8640

      public ItemStack method_8640(World world, BlockPos blockPos, BlockState blockState)
      Overrides:
      method_8640 in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lalu;a(Lajs;Lco;Latl;)Lafj;
      intermediary method_8640 Lnet/minecraft/class_197;method_8640(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Lnet/minecraft/class_1071;
      named method_8640 Lnet/minecraft/block/Block;method_8640(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/item/ItemStack;
    • method_8722

      public boolean method_8722(BlockView blockView, BlockPos blockPos, BlockState blockState)
      Overrides:
      method_8722 in class AbstractRedstoneGateBlock
      Mappings:
      Namespace Name Mixin selector
      official b Lamt;b(Lajw;Lco;Latl;)Z
      intermediary method_8722 Lnet/minecraft/class_1449;method_8722(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Z
      named method_8722 Lnet/minecraft/block/AbstractRedstoneGateBlock;method_8722(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Z
    • method_11601

      protected boolean method_11601(BlockState blockState)
      Overrides:
      method_11601 in class AbstractRedstoneGateBlock
      Mappings:
      Namespace Name Mixin selector
      official C Lamt;C(Latl;)Z
      intermediary method_11601 Lnet/minecraft/class_1449;method_11601(Lnet/minecraft/class_2232;)Z
      named method_11601 Lnet/minecraft/block/AbstractRedstoneGateBlock;method_11601(Lnet/minecraft/block/BlockState;)Z
    • method_8669

      @Environment(CLIENT) public void method_8669(BlockState blockState, World world, BlockPos blockPos, Random random)
      Overrides:
      method_8669 in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lalu;a(Latl;Lajs;Lco;Ljava/util/Random;)V
      intermediary method_8669 Lnet/minecraft/class_197;method_8669(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Ljava/util/Random;)V
      named method_8669 Lnet/minecraft/block/Block;method_8669(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)V
    • onBreaking

      public void onBreaking(World world, BlockPos pos, BlockState state)
      Runs when the block is removed (by an entity or explosion).
      Overrides:
      onBreaking in class Block
      Parameters:
      world - The world that the block is placed in
      pos - The block's position
      state - The block's BlockState
      Mappings:
      Namespace Name Mixin selector
      official b Lalu;b(Lajs;Lco;Latl;)V
      intermediary method_8659 Lnet/minecraft/class_197;method_8659(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)V
      named onBreaking Lnet/minecraft/block/Block;onBreaking(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
    • stateFromData

      public BlockState stateFromData(int data)
      Returns a blockstate of the current block from it's id
      Overrides:
      stateFromData in class Block
      Parameters:
      data - The Blockstate's associated data value
      Returns:
      The Default state
      Mappings:
      Namespace Name Mixin selector
      official a Lalu;a(I)Latl;
      intermediary method_8635 Lnet/minecraft/class_197;method_8635(I)Lnet/minecraft/class_2232;
      named stateFromData Lnet/minecraft/block/Block;stateFromData(I)Lnet/minecraft/block/BlockState;
    • getData

      public int getData(BlockState state)
      Returns the data value for a blockstate Throws an IllegalArmumentException as this method does not work
      Overrides:
      getData in class Block
      Parameters:
      state - The Blockstate
      Returns:
      Zero
      Mappings:
      Namespace Name Mixin selector
      official e Lalu;e(Latl;)I
      intermediary method_8671 Lnet/minecraft/class_197;method_8671(Lnet/minecraft/class_2232;)I
      named getData Lnet/minecraft/block/Block;getData(Lnet/minecraft/block/BlockState;)I
    • appendProperties

      protected StateManager appendProperties()
      Returns a new state manager with a property array.
      Overrides:
      appendProperties in class Block
      Returns:
      New state manager
      Mappings:
      Namespace Name Mixin selector
      official b Lalu;b()Latm;
      intermediary method_8676 Lnet/minecraft/class_197;method_8676()Lnet/minecraft/class_2233;
      named appendProperties Lnet/minecraft/block/Block;appendProperties()Lnet/minecraft/state/StateManager;