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_286
named net/minecraft/block/RedstoneWireBlock
  • Field Details

    • NORTH

      Mappings:
      Namespace Name Mixin selector
      official a Lajb;a:Lamm;
      intermediary field_1148 Lnet/minecraft/class_286;field_1148:Lnet/minecraft/class_390;
      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_1149 Lnet/minecraft/class_286;field_1149:Lnet/minecraft/class_390;
      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_1143 Lnet/minecraft/class_286;field_1143:Lnet/minecraft/class_390;
      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_1144 Lnet/minecraft/class_286;field_1144:Lnet/minecraft/class_390;
      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_1145 Lnet/minecraft/class_286;field_1145:Lnet/minecraft/class_391;
      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_1146 Lnet/minecraft/class_286;field_1146: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_1147 Lnet/minecraft/class_286;field_1147: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, WorldView view, BlockPos pos)
      Returns the current block's blockstate at a certain position
      Overrides:
      getBlockState in class Block
      Parameters:
      state - The original blockstate
      view - WorldView instance
      pos - The block's position
      Returns:
      state
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Lalz;Ladq;Lcj;)Lalz;
      intermediary method_673 Lnet/minecraft/class_160;method_673(Lnet/minecraft/class_376;Lnet/minecraft/class_104;Lnet/minecraft/class_1372;)Lnet/minecraft/class_376;
      named getBlockState Lnet/minecraft/block/Block;getBlockState(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
    • method_975

      private RedstoneWireBlock.RedstoneWireType method_975​(WorldView worldView, BlockPos blockPos, Direction direction)
      Mappings:
      Namespace Name Mixin selector
      official c Lajb;c(Ladq;Lcj;Lcq;)Lajb$a;
      intermediary method_975 Lnet/minecraft/class_286;method_975(Lnet/minecraft/class_104;Lnet/minecraft/class_1372;Lnet/minecraft/class_1383;)Lnet/minecraft/class_286$class_287;
      named method_975 Lnet/minecraft/block/RedstoneWireBlock;method_975(Lnet/minecraft/world/WorldView;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_645 Lnet/minecraft/class_160;method_645(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;)Lnet/minecraft/class_646;
      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_699 Lnet/minecraft/class_160;method_699()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_709 Lnet/minecraft/class_160;method_709()Z
      named renderAsNormalBlock Lnet/minecraft/block/Block;renderAsNormalBlock()Z
    • getBlockColor

      @Environment(CLIENT) public int getBlockColor​(WorldView view, BlockPos pos, int id)
      Returns the current block's color
      Overrides:
      getBlockColor in class Block
      Parameters:
      view - WorldView 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_666 Lnet/minecraft/class_160;method_666(Lnet/minecraft/class_104;Lnet/minecraft/class_1372;I)I
      named getBlockColor Lnet/minecraft/block/Block;getBlockColor(Lnet/minecraft/world/WorldView;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_711 Lnet/minecraft/class_160;method_711(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;)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_979 Lnet/minecraft/class_286;method_979(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;)Lnet/minecraft/class_376;
      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_972

      private BlockState method_972​(World world, BlockPos blockPos, BlockPos blockPos2, BlockState blockState)
      Mappings:
      Namespace Name Mixin selector
      official a Lajb;a(Ladm;Lcj;Lcj;Lalz;)Lalz;
      intermediary method_972 Lnet/minecraft/class_286;method_972(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;)Lnet/minecraft/class_376;
      named method_972 Lnet/minecraft/block/RedstoneWireBlock;method_972(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_978 Lnet/minecraft/class_286;method_978(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;)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_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
    • method_971

      private int method_971​(World world, BlockPos blockPos, int int2)
      Mappings:
      Namespace Name Mixin selector
      official a Lajb;a(Ladm;Lcj;I)I
      intermediary method_971 Lnet/minecraft/class_286;method_971(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;I)I
      named method_971 Lnet/minecraft/block/RedstoneWireBlock;method_971(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_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
    • 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;
    • 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
    • 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_976

      private boolean method_976​(WorldView worldView, BlockPos blockPos, Direction direction)
      Mappings:
      Namespace Name Mixin selector
      official d Lajb;d(Ladq;Lcj;Lcq;)Z
      intermediary method_976 Lnet/minecraft/class_286;method_976(Lnet/minecraft/class_104;Lnet/minecraft/class_1372;Lnet/minecraft/class_1383;)Z
      named method_976 Lnet/minecraft/block/RedstoneWireBlock;method_976(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Z
    • method_980

      protected static boolean method_980​(WorldView worldView, BlockPos blockPos)
      Mappings:
      Namespace Name Mixin selector
      official e Lajb;e(Ladq;Lcj;)Z
      intermediary method_980 Lnet/minecraft/class_286;method_980(Lnet/minecraft/class_104;Lnet/minecraft/class_1372;)Z
      named method_980 Lnet/minecraft/block/RedstoneWireBlock;method_980(Lnet/minecraft/world/WorldView;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_977 Lnet/minecraft/class_286;method_977(Lnet/minecraft/class_376;)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_973 Lnet/minecraft/class_286;method_973(Lnet/minecraft/class_376;Lnet/minecraft/class_1383;)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_723 Lnet/minecraft/class_160;method_723()Z
      named emitsRedstonePower Lnet/minecraft/block/Block;emitsRedstonePower()Z
    • method_974

      @Environment(CLIENT) private int method_974​(int int2)
      Mappings:
      Namespace Name Mixin selector
      official b Lajb;b(I)I
      intermediary method_974 Lnet/minecraft/class_286;method_974(I)I
      named method_974 Lnet/minecraft/block/RedstoneWireBlock;method_974(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_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;
    • getRenderLayerType

      @Environment(CLIENT) public RenderLayer 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_731 Lnet/minecraft/class_160;method_731()Lnet/minecraft/class_91;
      named getRenderLayerType Lnet/minecraft/block/Block;getRenderLayerType()Lnet/minecraft/client/render/RenderLayer;
    • 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_637 Lnet/minecraft/class_160;method_637(I)Lnet/minecraft/class_376;
      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_706 Lnet/minecraft/class_160;method_706(Lnet/minecraft/class_376;)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_714 Lnet/minecraft/class_160;method_714()Lnet/minecraft/class_378;
      named appendProperties Lnet/minecraft/block/Block;appendProperties()Lnet/minecraft/state/StateManager;