Class RedstoneWireBlock

java.lang.Object
net.minecraft.block.Block
net.minecraft.block.RedstoneWireBlock

public class RedstoneWireBlock extends Block
Mappings:
Namespace Name
official ajb
intermediary net/minecraft/class_177
named net/minecraft/block/RedstoneWireBlock
  • Field Details

    • NORTH

      Mappings:
      Namespace Name Mixin selector
      official a Lajb;a:Lamm;
      intermediary field_9630 Lnet/minecraft/class_177;field_9630:Lnet/minecraft/class_2245;
      named NORTH Lnet/minecraft/block/RedstoneWireBlock;NORTH:Lnet/minecraft/state/property/EnumProperty;
    • EAST

      Mappings:
      Namespace Name Mixin selector
      official b Lajb;b:Lamm;
      intermediary field_9631 Lnet/minecraft/class_177;field_9631:Lnet/minecraft/class_2245;
      named EAST Lnet/minecraft/block/RedstoneWireBlock;EAST:Lnet/minecraft/state/property/EnumProperty;
    • SOUTH

      Mappings:
      Namespace Name Mixin selector
      official N Lajb;N:Lamm;
      intermediary field_9627 Lnet/minecraft/class_177;field_9627:Lnet/minecraft/class_2245;
      named SOUTH Lnet/minecraft/block/RedstoneWireBlock;SOUTH:Lnet/minecraft/state/property/EnumProperty;
    • WEST

      Mappings:
      Namespace Name Mixin selector
      official O Lajb;O:Lamm;
      intermediary field_9628 Lnet/minecraft/class_177;field_9628:Lnet/minecraft/class_2245;
      named WEST Lnet/minecraft/block/RedstoneWireBlock;WEST:Lnet/minecraft/state/property/EnumProperty;
    • POWER

      public static final IntProperty POWER
      Mappings:
      Namespace Name Mixin selector
      official P Lajb;P:Lamn;
      intermediary field_9629 Lnet/minecraft/class_177;field_9629:Lnet/minecraft/class_2246;
      named POWER Lnet/minecraft/block/RedstoneWireBlock;POWER:Lnet/minecraft/state/property/IntProperty;
    • wiresGivePower

      private boolean wiresGivePower
      Mappings:
      Namespace Name Mixin selector
      official Q Lajb;Q:Z
      intermediary field_313 Lnet/minecraft/class_177;field_313:Z
      named wiresGivePower Lnet/minecraft/block/RedstoneWireBlock;wiresGivePower:Z
    • affectedNeighbors

      private final Set<BlockPos> affectedNeighbors
      Mappings:
      Namespace Name Mixin selector
      official R Lajb;R:Ljava/util/Set;
      intermediary field_314 Lnet/minecraft/class_177;field_314:Ljava/util/Set;
      named affectedNeighbors Lnet/minecraft/block/RedstoneWireBlock;affectedNeighbors:Ljava/util/Set;
  • Constructor Details

    • RedstoneWireBlock

      public RedstoneWireBlock()
  • Method Details

    • 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 a Lafh;a(Lalz;Ladq;Lcj;)Lalz;
      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;
    • method_8878

      private RedstoneWireBlock.RedstoneWireType method_8878(BlockView blockView, BlockPos blockPos, Direction direction)
      Mappings:
      Namespace Name Mixin selector
      official c Lajb;c(Ladq;Lcj;Lcq;)Lajb$a;
      intermediary method_8878 Lnet/minecraft/class_177;method_8878(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;)Lnet/minecraft/class_177$class_2209;
      named method_8878 Lnet/minecraft/block/RedstoneWireBlock;method_8878(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Lnet/minecraft/block/RedstoneWireBlock$RedstoneWireType;
    • getCollisionBox

      public Box getCollisionBox(World world, BlockPos pos, BlockState state)
      Returns a box by adding the block's current location and the block's corresponding value in its Bounding Box
      Overrides:
      getCollisionBox in class Block
      Parameters:
      world - The world that the block has been placed
      pos - The block's position
      state - The block's BlockState
      Returns:
      The Collision box
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Ladm;Lcj;Lalz;)Laug;
      intermediary method_8640 Lnet/minecraft/class_197;method_8640(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Lnet/minecraft/class_231;
      named getCollisionBox Lnet/minecraft/block/Block;getCollisionBox(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/util/math/Box;
    • hasTransperancy

      public boolean hasTransperancy()
      Overrides:
      hasTransperancy in class Block
      Mappings:
      Namespace Name Mixin selector
      official c Lafh;c()Z
      intermediary method_449 Lnet/minecraft/class_197;method_449()Z
      named hasTransperancy Lnet/minecraft/block/Block;hasTransperancy()Z
    • renderAsNormalBlock

      public boolean renderAsNormalBlock()
      Returns whether the block can be rendered as a normal block
      Overrides:
      renderAsNormalBlock in class Block
      Returns:
      Whether the block can be rendered as a normal block
      Mappings:
      Namespace Name Mixin selector
      official d Lafh;d()Z
      intermediary method_441 Lnet/minecraft/class_197;method_441()Z
      named renderAsNormalBlock Lnet/minecraft/block/Block;renderAsNormalBlock()Z
    • getBlockColor

      @Environment(CLIENT) public int getBlockColor(BlockView view, BlockPos pos, int id)
      Returns the current block's color
      Overrides:
      getBlockColor in class Block
      Parameters:
      view - BlockView instance
      pos - The block's position
      id - Id
      Returns:
      Block color
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Ladq;Lcj;I)I
      intermediary method_438 Lnet/minecraft/class_197;method_438(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;I)I
      named getBlockColor Lnet/minecraft/block/Block;getBlockColor(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;I)I
    • canBePlacedAtPos

      public boolean canBePlacedAtPos(World world, BlockPos pos)
      Returns whether the current block can be placed at a certain BlockPos
      Overrides:
      canBePlacedAtPos in class Block
      Returns:
      Whether the current block can be placed at a BlockPos
      Mappings:
      Namespace Name Mixin selector
      official d Lafh;d(Ladm;Lcj;)Z
      intermediary method_8673 Lnet/minecraft/class_197;method_8673(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Z
      named canBePlacedAtPos Lnet/minecraft/block/Block;canBePlacedAtPos(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
    • update

      private BlockState update(World world, BlockPos pos, BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official e Lajb;e(Ladm;Lcj;Lalz;)Lalz;
      intermediary method_8882 Lnet/minecraft/class_177;method_8882(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Lnet/minecraft/class_2232;
      named update Lnet/minecraft/block/RedstoneWireBlock;update(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/BlockState;
    • method_8875

      private BlockState method_8875(World world, BlockPos blockPos, BlockPos blockPos2, BlockState blockState)
      Mappings:
      Namespace Name Mixin selector
      official a Lajb;a(Ladm;Lcj;Lcj;Lalz;)Lalz;
      intermediary method_8875 Lnet/minecraft/class_177;method_8875(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Lnet/minecraft/class_2232;
      named method_8875 Lnet/minecraft/block/RedstoneWireBlock;method_8875(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/BlockState;
    • updateNeighbors

      private void updateNeighbors(World world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official e Lajb;e(Ladm;Lcj;)V
      intermediary method_8881 Lnet/minecraft/class_177;method_8881(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)V
      named updateNeighbors Lnet/minecraft/block/RedstoneWireBlock;updateNeighbors(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
    • 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 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 c Lafh;c(Ladm;Lcj;Lalz;)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 Lafh;b(Ladm;Lcj;Lalz;)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
    • method_8874

      private int method_8874(World world, BlockPos blockPos, int int2)
      Mappings:
      Namespace Name Mixin selector
      official a Lajb;a(Ladm;Lcj;I)I
      intermediary method_8874 Lnet/minecraft/class_177;method_8874(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;I)I
      named method_8874 Lnet/minecraft/block/RedstoneWireBlock;method_8874(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;I)I
    • 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 Block
      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_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
    • 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_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;
    • 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 Lafh;b(Ladq;Lcj;Lalz;Lcq;)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
    • 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 Lafh;a(Ladq;Lcj;Lalz;Lcq;)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_8879

      private boolean method_8879(BlockView blockView, BlockPos blockPos, Direction direction)
      Mappings:
      Namespace Name Mixin selector
      official d Lajb;d(Ladq;Lcj;Lcq;)Z
      intermediary method_8879 Lnet/minecraft/class_177;method_8879(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;)Z
      named method_8879 Lnet/minecraft/block/RedstoneWireBlock;method_8879(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Z
    • method_8883

      protected static boolean method_8883(BlockView blockView, BlockPos blockPos)
      Mappings:
      Namespace Name Mixin selector
      official e Lajb;e(Ladq;Lcj;)Z
      intermediary method_8883 Lnet/minecraft/class_177;method_8883(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Z
      named method_8883 Lnet/minecraft/block/RedstoneWireBlock;method_8883(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Z
    • connectsTo

      protected static boolean connectsTo(BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official d Lajb;d(Lalz;)Z
      intermediary method_8880 Lnet/minecraft/class_177;method_8880(Lnet/minecraft/class_2232;)Z
      named connectsTo Lnet/minecraft/block/RedstoneWireBlock;connectsTo(Lnet/minecraft/block/BlockState;)Z
    • connectsTo

      protected static boolean connectsTo(BlockState state, Direction dir)
      Mappings:
      Namespace Name Mixin selector
      official a Lajb;a(Lalz;Lcq;)Z
      intermediary method_8876 Lnet/minecraft/class_177;method_8876(Lnet/minecraft/class_2232;Lnet/minecraft/class_1354;)Z
      named connectsTo Lnet/minecraft/block/RedstoneWireBlock;connectsTo(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Direction;)Z
    • 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_466 Lnet/minecraft/class_197;method_466()Z
      named emitsRedstonePower Lnet/minecraft/block/Block;emitsRedstonePower()Z
    • method_8877

      @Environment(CLIENT) private int method_8877(int int2)
      Mappings:
      Namespace Name Mixin selector
      official b Lajb;b(I)I
      intermediary method_8877 Lnet/minecraft/class_177;method_8877(I)I
      named method_8877 Lnet/minecraft/block/RedstoneWireBlock;method_8877(I)I
    • 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 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 c Lafh;c(Ladm;Lcj;Lalz;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 c Lafh;c(Ladm;Lcj;)Lzw;
      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;
    • getRenderLayerType

      @Environment(CLIENT) public BlockRenderLayer getRenderLayerType()
      Returns the appropriate RenderLayer for a block. Only called on the client.
      Overrides:
      getRenderLayerType in class Block
      Returns:
      The block's RenderLayer
      Mappings:
      Namespace Name Mixin selector
      official m Lafh;m()Ladf;
      intermediary method_8687 Lnet/minecraft/class_197;method_8687()Lnet/minecraft/class_2165;
      named getRenderLayerType Lnet/minecraft/block/Block;getRenderLayerType()Lnet/minecraft/client/render/BlockRenderLayer;
    • 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 Lafh;a(I)Lalz;
      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 c Lafh;c(Lalz;)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 e Lafh;e()Lama;
      intermediary method_8676 Lnet/minecraft/class_197;method_8676()Lnet/minecraft/class_2233;
      named appendProperties Lnet/minecraft/block/Block;appendProperties()Lnet/minecraft/state/StateManager;