Class RedstoneTorchBlock


public class RedstoneTorchBlock extends TorchBlock
Mappings:
Namespace Name
official azw
intermediary net/minecraft/class_164
named net/minecraft/block/RedstoneTorchBlock
  • Field Details

    • field_293

      private static Map field_293
      Mappings:
      Namespace Name Mixin selector
      official b Lazw;b:Ljava/util/Map;
      intermediary field_293 Lnet/minecraft/class_164;field_293:Ljava/util/Map;
      named field_293 Lnet/minecraft/block/RedstoneTorchBlock;field_293:Ljava/util/Map;
    • field_292

      private final boolean field_292
      Mappings:
      Namespace Name Mixin selector
      official M Lazw;M:Z
      intermediary field_292 Lnet/minecraft/class_164;field_292:Z
      named field_292 Lnet/minecraft/block/RedstoneTorchBlock;field_292:Z
  • Constructor Details

    • RedstoneTorchBlock

      protected RedstoneTorchBlock(boolean bool)
  • Method Details

    • method_8884

      private boolean method_8884(World world, BlockPos blockPos, boolean bool)
      Mappings:
      Namespace Name Mixin selector
      official a Lazw;a(Laqu;Ldt;Z)Z
      intermediary method_8884 Lnet/minecraft/class_164;method_8884(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Z)Z
      named method_8884 Lnet/minecraft/block/RedstoneTorchBlock;method_8884(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Z)Z
    • getTickRate

      public int getTickRate(World world)
      Returns the block's tick rate. Default is 10.
      Overrides:
      getTickRate in class Block
      Parameters:
      world - The world that the block is placed in
      Returns:
      Tick rate
      Mappings:
      Namespace Name Mixin selector
      official a Latr;a(Laqu;)I
      intermediary method_4789 Lnet/minecraft/class_197;method_4789(Lnet/minecraft/class_1150;)I
      named getTickRate Lnet/minecraft/block/Block;getTickRate(Lnet/minecraft/world/World;)I
    • onCreation

      public void onCreation(World world, BlockPos pos, BlockState state)
      Runs when the block is placed (by a player or enderman).
      Overrides:
      onCreation in class TorchBlock
      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 c Latr;c(Laqu;Ldt;Lbec;)V
      intermediary method_8668 Lnet/minecraft/class_197;method_8668(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)V
      named onCreation Lnet/minecraft/block/Block;onCreation(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)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 Latr;b(Laqu;Ldt;Lbec;)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
    • getWeakRedstonePower

      public int getWeakRedstonePower(BlockView view, BlockPos pos, BlockState state, Direction facing)
      Returns the block's weak redstone power.
      Overrides:
      getWeakRedstonePower in class Block
      Parameters:
      view - BlockView instance
      pos - The block's position
      state - The block's BlockState
      facing - The block's direction
      Returns:
      Block's weak redstone power
      Mappings:
      Namespace Name Mixin selector
      official a Latr;a(Lard;Ldt;Lbec;Lej;)I
      intermediary method_8653 Lnet/minecraft/class_197;method_8653(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Lnet/minecraft/class_1354;)I
      named getWeakRedstonePower Lnet/minecraft/block/Block;getWeakRedstonePower(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Direction;)I
    • method_8885

      private boolean method_8885(World world, BlockPos blockPos, BlockState blockState)
      Mappings:
      Namespace Name Mixin selector
      official g Lazw;g(Laqu;Ldt;Lbec;)Z
      intermediary method_8885 Lnet/minecraft/class_164;method_8885(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Z
      named method_8885 Lnet/minecraft/block/RedstoneTorchBlock;method_8885(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Z
    • onUpdateTick

      public void onUpdateTick(World world, BlockPos pos, BlockState state, Random rand)
      Runs when the block is updated
      Overrides:
      onUpdateTick in class Block
      Parameters:
      world - The world that the block is placed in
      pos - The block's position
      state - The block's BlockState
      rand - Random object
      Mappings:
      Namespace Name Mixin selector
      official a Latr;a(Laqu;Ldt;Lbec;Ljava/util/Random;)V
      intermediary method_8643 Lnet/minecraft/class_197;method_8643(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Ljava/util/Random;)V
      named onUpdateTick Lnet/minecraft/block/Block;onUpdateTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Ljava/util/Random;)V
    • scheduledTick

      public void scheduledTick(World world, BlockPos pos, BlockState state, Random rand)
      Runs when the block is updated as per a schedule
      Overrides:
      scheduledTick in class Block
      Parameters:
      world - The world that the block is placed in
      pos - The block's position
      state - The block's BlockState
      rand - Random object
      Mappings:
      Namespace Name Mixin selector
      official b Latr;b(Laqu;Ldt;Lbec;Ljava/util/Random;)V
      intermediary method_8661 Lnet/minecraft/class_197;method_8661(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Ljava/util/Random;)V
      named scheduledTick Lnet/minecraft/block/Block;scheduledTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Ljava/util/Random;)V
    • neighborUpdate

      public void neighborUpdate(World world, BlockPos pos, BlockState state, Block block)
      Runs when its adjacent blocks are updated. It will also run when the block is placed or removed as Air is being updated.
      Overrides:
      neighborUpdate in class TorchBlock
      Parameters:
      world - The world that the block is placed in
      pos - The block's position
      state - The block's BlockState
      block - The adjacent Block that updated the current block
      Mappings:
      Namespace Name Mixin selector
      official a Latr;a(Laqu;Ldt;Lbec;Latr;)V
      intermediary method_8641 Lnet/minecraft/class_197;method_8641(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Lnet/minecraft/class_197;)V
      named neighborUpdate Lnet/minecraft/block/Block;neighborUpdate(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/Block;)V
    • getStrongRedstonePower

      public int getStrongRedstonePower(BlockView view, BlockPos pos, BlockState state, Direction facing)
      Returns the block's strong redstone power.
      Overrides:
      getStrongRedstonePower in class Block
      Parameters:
      view - BlockView instance
      pos - The block's position
      state - The block's BlockState
      facing - The block's direction
      Returns:
      The Block's strong redstone power
      Mappings:
      Namespace Name Mixin selector
      official b Latr;b(Lard;Ldt;Lbec;Lej;)I
      intermediary method_8664 Lnet/minecraft/class_197;method_8664(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Lnet/minecraft/class_1354;)I
      named getStrongRedstonePower Lnet/minecraft/block/Block;getStrongRedstonePower(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Direction;)I
    • 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 Latr;a(Lbec;Ljava/util/Random;I)Lalq;
      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;
    • emitsRedstonePower

      public boolean emitsRedstonePower()
      Returns whether the current block emits a redstone signal. Used by comparators, Redstone Blocks, etc.
      Overrides:
      emitsRedstonePower in class Block
      Returns:
      Whether the current block emits a redstone signal
      Mappings:
      Namespace Name Mixin selector
      official g Latr;g()Z
      intermediary method_466 Lnet/minecraft/class_197;method_466()Z
      named emitsRedstonePower Lnet/minecraft/block/Block;emitsRedstonePower()Z
    • randomDisplayTick

      @Environment(CLIENT) public void randomDisplayTick(World world, BlockPos pos, BlockState state, Random rand)
      Runs every random display Tick. Useful for displaying particles around a block, like Redstone Ore.
      Overrides:
      randomDisplayTick in class TorchBlock
      Parameters:
      world - The world that the block is placed in
      pos - The block's position
      state - The block's BlockState
      rand - Random object
      Mappings:
      Namespace Name Mixin selector
      official c Latr;c(Laqu;Ldt;Lbec;Ljava/util/Random;)V
      intermediary method_8669 Lnet/minecraft/class_197;method_8669(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Ljava/util/Random;)V
      named randomDisplayTick Lnet/minecraft/block/Block;randomDisplayTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Ljava/util/Random;)V
    • getPickItem

      @Environment(CLIENT) public Item getPickItem(World world, BlockPos pos)
      Called when a player presses the pick block key while facing the block. It returns the item that must be placed into the player's inventory.
      Overrides:
      getPickItem in class Block
      Returns:
      The Item that must be placed into the player's inventory
      Mappings:
      Namespace Name Mixin selector
      official b Latr;b(Laqu;Ldt;)Lalq;
      intermediary method_8667 Lnet/minecraft/class_197;method_8667(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Lnet/minecraft/class_1069;
      named getPickItem Lnet/minecraft/block/Block;getPickItem(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/item/Item;
    • isEqualTo

      public boolean isEqualTo(Block block)
      Returns whether the current block and another block are equal
      Overrides:
      isEqualTo in class Block
      Parameters:
      block - The other block
      Returns:
      Whether the current block and the other block are equal
      Mappings:
      Namespace Name Mixin selector
      official b Latr;b(Latr;)Z
      intermediary method_6447 Lnet/minecraft/class_197;method_6447(Lnet/minecraft/class_197;)Z
      named isEqualTo Lnet/minecraft/block/Block;isEqualTo(Lnet/minecraft/block/Block;)Z