Class RedstoneTorchBlock


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

    • field_1157

      private static Map<World,​List<RedstoneTorchBlock.BurnoutEntry>> field_1157
      Mappings:
      Namespace Name Mixin selector
      official b Lajd;b:Ljava/util/Map;
      intermediary field_1157 Lnet/minecraft/class_289;field_1157:Ljava/util/Map;
      named field_1157 Lnet/minecraft/block/RedstoneTorchBlock;field_1157:Ljava/util/Map;
    • field_1156

      private final boolean field_1156
      Mappings:
      Namespace Name Mixin selector
      official N Lajd;N:Z
      intermediary field_1156 Lnet/minecraft/class_289;field_1156:Z
      named field_1156 Lnet/minecraft/block/RedstoneTorchBlock;field_1156:Z
  • Constructor Details

    • RedstoneTorchBlock

      protected RedstoneTorchBlock​(boolean bool)
  • Method Details

    • method_981

      private boolean method_981​(World world, BlockPos blockPos, boolean bool)
      Mappings:
      Namespace Name Mixin selector
      official a Lajd;a(Ladm;Lcj;Z)Z
      intermediary method_981 Lnet/minecraft/class_289;method_981(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Z)Z
      named method_981 Lnet/minecraft/block/RedstoneTorchBlock;method_981(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 Lafh;a(Ladm;)I
      intermediary method_642 Lnet/minecraft/class_160;method_642(Lnet/minecraft/class_99;)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 Lafh;c(Ladm;Lcj;Lalz;)V
      intermediary method_703 Lnet/minecraft/class_160;method_703(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;)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 Lafh;b(Ladm;Lcj;Lalz;)V
      intermediary method_688 Lnet/minecraft/class_160;method_688(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;)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​(WorldView view, BlockPos pos, BlockState state, Direction facing)
      Returns the block's weak redstone power.
      Overrides:
      getWeakRedstonePower in class Block
      Parameters:
      view - WorldView 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 Lafh;a(Ladq;Lcj;Lalz;Lcq;)I
      intermediary method_667 Lnet/minecraft/class_160;method_667(Lnet/minecraft/class_104;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;Lnet/minecraft/class_1383;)I
      named getWeakRedstonePower Lnet/minecraft/block/Block;getWeakRedstonePower(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Direction;)I
    • method_982

      private boolean method_982​(World world, BlockPos blockPos, BlockState blockState)
      Mappings:
      Namespace Name Mixin selector
      official g Lajd;g(Ladm;Lcj;Lalz;)Z
      intermediary method_982 Lnet/minecraft/class_289;method_982(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;)Z
      named method_982 Lnet/minecraft/block/RedstoneTorchBlock;method_982(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 Lafh;a(Ladm;Lcj;Lalz;Ljava/util/Random;)V
      intermediary method_650 Lnet/minecraft/class_160;method_650(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;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 Lafh;b(Ladm;Lcj;Lalz;Ljava/util/Random;)V
      intermediary method_690 Lnet/minecraft/class_160;method_690(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;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 Lafh;a(Ladm;Lcj;Lalz;Lafh;)V
      intermediary method_648 Lnet/minecraft/class_160;method_648(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;Lnet/minecraft/class_160;)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​(WorldView view, BlockPos pos, BlockState state, Direction facing)
      Returns the block's strong redstone power.
      Overrides:
      getStrongRedstonePower in class Block
      Parameters:
      view - WorldView 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 Lafh;b(Ladq;Lcj;Lalz;Lcq;)I
      intermediary method_693 Lnet/minecraft/class_160;method_693(Lnet/minecraft/class_104;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;Lnet/minecraft/class_1383;)I
      named getStrongRedstonePower Lnet/minecraft/block/Block;getStrongRedstonePower(Lnet/minecraft/world/WorldView;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 Lafh;a(Lalz;Ljava/util/Random;I)Lzw;
      intermediary method_674 Lnet/minecraft/class_160;method_674(Lnet/minecraft/class_376;Ljava/util/Random;I)Lnet/minecraft/class_2054;
      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 i Lafh;i()Z
      intermediary method_723 Lnet/minecraft/class_160;method_723()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 Lafh;c(Ladm;Lcj;Lalz;Ljava/util/Random;)V
      intermediary method_704 Lnet/minecraft/class_160;method_704(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;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 c Lafh;c(Ladm;Lcj;)Lzw;
      intermediary method_702 Lnet/minecraft/class_160;method_702(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;)Lnet/minecraft/class_2054;
      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 Lafh;b(Lafh;)Z
      intermediary method_695 Lnet/minecraft/class_160;method_695(Lnet/minecraft/class_160;)Z
      named isEqualTo Lnet/minecraft/block/Block;isEqualTo(Lnet/minecraft/block/Block;)Z