Class RedstoneWireBlock

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

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

    • NORTH

      Mappings:
      Namespace Name Mixin selector
      official a Laqb;a:Latz;
      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 Laqb;b:Latz;
      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 c Laqb;c:Latz;
      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 d Laqb;d:Latz;
      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 e Laqb;e:Laua;
      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;
    • field_12731

      protected static final Box[] field_12731
      Mappings:
      Namespace Name Mixin selector
      official f Laqb;f:[Lbdt;
      intermediary field_12731 Lnet/minecraft/class_177;field_12731:[Lnet/minecraft/class_231;
      named field_12731 Lnet/minecraft/block/RedstoneWireBlock;field_12731:[Lnet/minecraft/util/math/Box;
    • wiresGivePower

      private boolean wiresGivePower
      Mappings:
      Namespace Name Mixin selector
      official g Laqb;g: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 B Laqb;B: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

    • getCollisionBox

      public Box getCollisionBox(BlockState state, BlockView view, BlockPos pos)
      Overrides:
      getCollisionBox in class Block
      Mappings:
      Namespace Name Mixin selector
      official b Lalu;b(Latl;Lajw;Lco;)Lbdt;
      intermediary method_11554 Lnet/minecraft/class_197;method_11554(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Lnet/minecraft/class_231;
      named getCollisionBox Lnet/minecraft/block/Block;getCollisionBox(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/Box;
    • method_11625

      private static int method_11625(BlockState blockState)
      Mappings:
      Namespace Name Mixin selector
      official z Laqb;z(Latl;)I
      intermediary method_11625 Lnet/minecraft/class_177;method_11625(Lnet/minecraft/class_2232;)I
      named method_11625 Lnet/minecraft/block/RedstoneWireBlock;method_11625(Lnet/minecraft/block/BlockState;)I
    • 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;
    • method_8878

      private RedstoneWireBlock.RedstoneWireType method_8878(BlockView blockView, BlockPos blockPos, Direction direction)
      Mappings:
      Namespace Name Mixin selector
      official b Laqb;b(Lajw;Lco;Lcv;)Laqb$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;
    • method_8640

      @Nullable public Box method_8640(BlockState blockState, BlockView blockView, BlockPos blockPos)
      Overrides:
      method_8640 in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lalu;a(Latl;Lajw;Lco;)Lbdt;
      intermediary method_8640 Lnet/minecraft/class_197;method_8640(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Lnet/minecraft/class_231;
      named method_8640 Lnet/minecraft/block/Block;method_8640(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/Box;
    • isFullBoundsCubeForCulling

      public boolean isFullBoundsCubeForCulling(BlockState blockState)
      Overrides:
      isFullBoundsCubeForCulling in class Block
      Mappings:
      Namespace Name Mixin selector
      official b Lalu;b(Latl;)Z
      intermediary method_11560 Lnet/minecraft/class_197;method_11560(Lnet/minecraft/class_2232;)Z
      named isFullBoundsCubeForCulling Lnet/minecraft/block/Block;isFullBoundsCubeForCulling(Lnet/minecraft/block/BlockState;)Z
    • method_11562

      public boolean method_11562(BlockState state)
      Overrides:
      method_11562 in class Block
      Mappings:
      Namespace Name Mixin selector
      official c Lalu;c(Latl;)Z
      intermediary method_11562 Lnet/minecraft/class_197;method_11562(Lnet/minecraft/class_2232;)Z
      named method_11562 Lnet/minecraft/block/Block;method_11562(Lnet/minecraft/block/BlockState;)Z
    • 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 a Lalu;a(Lajs;Lco;)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 Laqb;e(Lajs;Lco;Latl;)Latl;
      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 Laqb;a(Lajs;Lco;Lco;Latl;)Latl;
      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 b Laqb;b(Lajs;Lco;)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 Lalu;c(Lajs;Lco;Latl;)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 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
    • method_8874

      private int method_8874(World world, BlockPos blockPos, int int2)
      Mappings:
      Namespace Name Mixin selector
      official a Laqb;a(Lajs;Lco;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
    • onBreak

      public void onBreak(BlockState state, World world, BlockPos arg3, Block block, BlockPos pos)
      Overrides:
      onBreak in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lalu;a(Latl;Lajs;Lco;Lalu;Lco;)V
      intermediary method_8641 Lnet/minecraft/class_197;method_8641(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_197;Lnet/minecraft/class_2552;)V
      named onBreak Lnet/minecraft/block/Block;onBreak(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/Block;Lnet/minecraft/util/math/BlockPos;)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 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_8664

      public int method_8664(BlockState blockState, BlockView blockView, BlockPos blockPos, Direction direction)
      Overrides:
      method_8664 in class Block
      Mappings:
      Namespace Name Mixin selector
      official c Lalu;c(Latl;Lajw;Lco;Lcv;)I
      intermediary method_8664 Lnet/minecraft/class_197;method_8664(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;)I
      named method_8664 Lnet/minecraft/block/Block;method_8664(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)I
    • method_8653

      public int method_8653(BlockState blockState, BlockView blockView, BlockPos blockPos, Direction direction)
      Overrides:
      method_8653 in class Block
      Mappings:
      Namespace Name Mixin selector
      official b Lalu;b(Latl;Lajw;Lco;Lcv;)I
      intermediary method_8653 Lnet/minecraft/class_197;method_8653(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;)I
      named method_8653 Lnet/minecraft/block/Block;method_8653(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)I
    • method_8879

      private boolean method_8879(BlockView blockView, BlockPos blockPos, Direction direction)
      Mappings:
      Namespace Name Mixin selector
      official c Laqb;c(Lajw;Lco;Lcv;)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 c Laqb;c(Lajw;Lco;)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 i Laqb;i(Latl;)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, @Nullable Direction dir)
      Mappings:
      Namespace Name Mixin selector
      official a Laqb;a(Latl;Lcv;)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
    • method_11566

      public boolean method_11566(BlockState state)
      Overrides:
      method_11566 in class Block
      Mappings:
      Namespace Name Mixin selector
      official g Lalu;g(Latl;)Z
      intermediary method_11566 Lnet/minecraft/class_197;method_11566(Lnet/minecraft/class_2232;)Z
      named method_11566 Lnet/minecraft/block/Block;method_11566(Lnet/minecraft/block/BlockState;)Z
    • method_8877

      @Environment(CLIENT) public static int method_8877(int int2)
      Mappings:
      Namespace Name Mixin selector
      official e Laqb;e(I)I
      intermediary method_8877 Lnet/minecraft/class_177;method_8877(I)I
      named method_8877 Lnet/minecraft/block/RedstoneWireBlock;method_8877(I)I
    • 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
    • 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;
    • 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 f Lalu;f()Lajk;
      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 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
    • 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;
    • 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;