Class AbstractRedstoneGateBlock

Direct Known Subclasses:
ComparatorBlock, RepeaterBlock

public abstract class AbstractRedstoneGateBlock extends HorizotalFacingBlock
Mappings:
Namespace Name
official apw
intermediary net/minecraft/class_1449
named net/minecraft/block/AbstractRedstoneGateBlock
  • Field Details

    • field_12644

      protected static final Box field_12644
      Mappings:
      Namespace Name Mixin selector
      official c Lapw;c:Lbhb;
      intermediary field_12644 Lnet/minecraft/class_1449;field_12644:Lnet/minecraft/class_231;
      named field_12644 Lnet/minecraft/block/AbstractRedstoneGateBlock;field_12644:Lnet/minecraft/util/math/Box;
    • locked

      protected final boolean locked
      Mappings:
      Namespace Name Mixin selector
      official d Lapw;d:Z
      intermediary field_5539 Lnet/minecraft/class_1449;field_5539:Z
      named locked Lnet/minecraft/block/AbstractRedstoneGateBlock;locked:Z
  • Constructor Details

    • AbstractRedstoneGateBlock

      protected AbstractRedstoneGateBlock(boolean locked)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lapw;<init>(Z)V
      intermediary <init> Lnet/minecraft/class_1449;<init>(Z)V
      named <init> Lnet/minecraft/block/AbstractRedstoneGateBlock;<init>(Z)V
  • Method Details

    • getCollisionBox

      public Box getCollisionBox(BlockState state, BlockView view, BlockPos pos)
      Overrides:
      getCollisionBox in class Block
      Mappings:
      Namespace Name Mixin selector
      official b Laow;b(Lawt;Lamy;Let;)Lbhb;
      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_11562

      public boolean method_11562(BlockState state)
      Overrides:
      method_11562 in class Block
      Mappings:
      Namespace Name Mixin selector
      official c Laow;c(Lawt;)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 Laow;a(Lamu;Let;)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
    • method_8726

      public boolean method_8726(World world, BlockPos blockPos)
      Mappings:
      Namespace Name Mixin selector
      official b Lapw;b(Lamu;Let;)Z
      intermediary method_8726 Lnet/minecraft/class_1449;method_8726(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Z
      named method_8726 Lnet/minecraft/block/AbstractRedstoneGateBlock;method_8726(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)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 Laow;a(Lamu;Let;Lawt;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 Laow;b(Lamu;Let;Lawt;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
    • method_8654

      @Environment(CLIENT) public boolean method_8654(BlockState state, BlockView view, BlockPos pos, Direction direction)
      Overrides:
      method_8654 in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Laow;a(Lawt;Lamy;Let;Lfa;)Z
      intermediary method_8654 Lnet/minecraft/class_197;method_8654(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;)Z
      named method_8654 Lnet/minecraft/block/Block;method_8654(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Z
    • method_8734

      protected boolean method_8734(BlockState blockState)
      Mappings:
      Namespace Name Mixin selector
      official A Lapw;A(Lawt;)Z
      intermediary method_8734 Lnet/minecraft/class_1449;method_8734(Lnet/minecraft/class_2232;)Z
      named method_8734 Lnet/minecraft/block/AbstractRedstoneGateBlock;method_8734(Lnet/minecraft/block/BlockState;)Z
    • 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 Laow;c(Lawt;Lamy;Let;Lfa;)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 Laow;b(Lawt;Lamy;Let;Lfa;)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
    • 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 Laow;a(Lawt;Lamu;Let;Laow;Let;)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
    • method_8730

      protected void method_8730(World world, BlockPos blockPos, BlockState blockState)
      Mappings:
      Namespace Name Mixin selector
      official g Lapw;g(Lamu;Let;Lawt;)V
      intermediary method_8730 Lnet/minecraft/class_1449;method_8730(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)V
      named method_8730 Lnet/minecraft/block/AbstractRedstoneGateBlock;method_8730(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
    • method_8722

      public boolean method_8722(BlockView blockView, BlockPos blockPos, BlockState blockState)
      Mappings:
      Namespace Name Mixin selector
      official b Lapw;b(Lamy;Let;Lawt;)Z
      intermediary method_8722 Lnet/minecraft/class_1449;method_8722(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Z
      named method_8722 Lnet/minecraft/block/AbstractRedstoneGateBlock;method_8722(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Z
    • method_8727

      protected boolean method_8727(World world, BlockPos blockPos, BlockState blockState)
      Mappings:
      Namespace Name Mixin selector
      official e Lapw;e(Lamu;Let;Lawt;)Z
      intermediary method_8727 Lnet/minecraft/class_1449;method_8727(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Z
      named method_8727 Lnet/minecraft/block/AbstractRedstoneGateBlock;method_8727(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Z
    • method_8729

      protected int method_8729(World world, BlockPos blockPos, BlockState blockState)
      Mappings:
      Namespace Name Mixin selector
      official f Lapw;f(Lamu;Let;Lawt;)I
      intermediary method_8729 Lnet/minecraft/class_1449;method_8729(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)I
      named method_8729 Lnet/minecraft/block/AbstractRedstoneGateBlock;method_8729(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)I
    • method_8723

      protected int method_8723(BlockView blockView, BlockPos blockPos, BlockState blockState)
      Mappings:
      Namespace Name Mixin selector
      official c Lapw;c(Lamy;Let;Lawt;)I
      intermediary method_8723 Lnet/minecraft/class_1449;method_8723(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)I
      named method_8723 Lnet/minecraft/block/AbstractRedstoneGateBlock;method_8723(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)I
    • method_8724

      protected int method_8724(BlockView blockView, BlockPos blockPos, Direction direction)
      Mappings:
      Namespace Name Mixin selector
      official a Lapw;a(Lamy;Let;Lfa;)I
      intermediary method_8724 Lnet/minecraft/class_1449;method_8724(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;)I
      named method_8724 Lnet/minecraft/block/AbstractRedstoneGateBlock;method_8724(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)I
    • method_11566

      public boolean method_11566(BlockState state)
      Overrides:
      method_11566 in class Block
      Mappings:
      Namespace Name Mixin selector
      official g Laow;g(Lawt;)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
    • getStateFromData

      public BlockState getStateFromData(World world, BlockPos pos, Direction dir, float float2, float float3, float float4, int id, LivingEntity entity)
      Returns a BlockState from an id
      Overrides:
      getStateFromData in class Block
      Parameters:
      world - The world that the block is placed in
      pos - The block's position
      dir - The block's direction
      Mappings:
      Namespace Name Mixin selector
      official a Laow;a(Lamu;Let;Lfa;FFFILvp;)Lawt;
      intermediary method_8645 Lnet/minecraft/class_197;method_8645(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;FFFILnet/minecraft/class_1699;)Lnet/minecraft/class_2232;
      named getStateFromData Lnet/minecraft/block/Block;getStateFromData(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;FFFILnet/minecraft/entity/LivingEntity;)Lnet/minecraft/block/BlockState;
    • onPlaced

      public void onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)
      Runs when the block is placed by an entity
      Overrides:
      onPlaced in class Block
      Parameters:
      world - The world that the block is in
      pos - The block's position
      state - The block's BlockState
      placer - The entity who placed the block
      itemStack - ItemStack instance
      Mappings:
      Namespace Name Mixin selector
      official a Laow;a(Lamu;Let;Lawt;Lvp;Laip;)V
      intermediary method_419 Lnet/minecraft/class_197;method_419(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Lnet/minecraft/class_1699;Lnet/minecraft/class_1071;)V
      named onPlaced Lnet/minecraft/block/Block;onPlaced(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;)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 Laow;c(Lamu;Let;Lawt;)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
    • method_8731

      protected void method_8731(World world, BlockPos blockPos, BlockState blockState)
      Mappings:
      Namespace Name Mixin selector
      official h Lapw;h(Lamu;Let;Lawt;)V
      intermediary method_8731 Lnet/minecraft/class_1449;method_8731(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)V
      named method_8731 Lnet/minecraft/block/AbstractRedstoneGateBlock;method_8731(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
    • onBreakByPlayer

      public void onBreakByPlayer(World world, BlockPos pos, BlockState state)
      Runs when the block is broken by the player
      Overrides:
      onBreakByPlayer 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 d Laow;d(Lamu;Let;Lawt;)V
      intermediary method_8674 Lnet/minecraft/class_197;method_8674(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)V
      named onBreakByPlayer Lnet/minecraft/block/Block;onBreakByPlayer(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
    • isFullBoundsCubeForCulling

      public boolean isFullBoundsCubeForCulling(BlockState blockState)
      Overrides:
      isFullBoundsCubeForCulling in class Block
      Mappings:
      Namespace Name Mixin selector
      official b Laow;b(Lawt;)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_11601

      protected boolean method_11601(BlockState blockState)
      Mappings:
      Namespace Name Mixin selector
      official B Lapw;B(Lawt;)Z
      intermediary method_11601 Lnet/minecraft/class_1449;method_11601(Lnet/minecraft/class_2232;)Z
      named method_11601 Lnet/minecraft/block/AbstractRedstoneGateBlock;method_11601(Lnet/minecraft/block/BlockState;)Z
    • method_8721

      protected int method_8721(BlockView blockView, BlockPos blockPos, BlockState blockState)
      Mappings:
      Namespace Name Mixin selector
      official a Lapw;a(Lamy;Let;Lawt;)I
      intermediary method_8721 Lnet/minecraft/class_1449;method_8721(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)I
      named method_8721 Lnet/minecraft/block/AbstractRedstoneGateBlock;method_8721(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)I
    • method_11602

      public static boolean method_11602(BlockState blockState)
      Mappings:
      Namespace Name Mixin selector
      official C Lapw;C(Lawt;)Z
      intermediary method_11602 Lnet/minecraft/class_1449;method_11602(Lnet/minecraft/class_2232;)Z
      named method_11602 Lnet/minecraft/block/AbstractRedstoneGateBlock;method_11602(Lnet/minecraft/block/BlockState;)Z
    • method_11603

      public boolean method_11603(BlockState blockState)
      Mappings:
      Namespace Name Mixin selector
      official D Lapw;D(Lawt;)Z
      intermediary method_11603 Lnet/minecraft/class_1449;method_11603(Lnet/minecraft/class_2232;)Z
      named method_11603 Lnet/minecraft/block/AbstractRedstoneGateBlock;method_11603(Lnet/minecraft/block/BlockState;)Z
    • method_8732

      public boolean method_8732(World world, BlockPos blockPos, BlockState blockState)
      Mappings:
      Namespace Name Mixin selector
      official i Lapw;i(Lamu;Let;Lawt;)Z
      intermediary method_8732 Lnet/minecraft/class_1449;method_8732(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Z
      named method_8732 Lnet/minecraft/block/AbstractRedstoneGateBlock;method_8732(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Z
    • method_8735

      protected int method_8735(BlockState blockState)
      Mappings:
      Namespace Name Mixin selector
      official E Lapw;E(Lawt;)I
      intermediary method_8735 Lnet/minecraft/class_1449;method_8735(Lnet/minecraft/class_2232;)I
      named method_8735 Lnet/minecraft/block/AbstractRedstoneGateBlock;method_8735(Lnet/minecraft/block/BlockState;)I
    • method_8725

      protected abstract int method_8725(BlockState blockState)
      Mappings:
      Namespace Name Mixin selector
      official x Lapw;x(Lawt;)I
      intermediary method_8725 Lnet/minecraft/class_1449;method_8725(Lnet/minecraft/class_2232;)I
      named method_8725 Lnet/minecraft/block/AbstractRedstoneGateBlock;method_8725(Lnet/minecraft/block/BlockState;)I
    • method_8728

      protected abstract BlockState method_8728(BlockState blockState)
      Mappings:
      Namespace Name Mixin selector
      official y Lapw;y(Lawt;)Lawt;
      intermediary method_8728 Lnet/minecraft/class_1449;method_8728(Lnet/minecraft/class_2232;)Lnet/minecraft/class_2232;
      named method_8728 Lnet/minecraft/block/AbstractRedstoneGateBlock;method_8728(Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/BlockState;
    • method_8733

      protected abstract BlockState method_8733(BlockState blockState)
      Mappings:
      Namespace Name Mixin selector
      official z Lapw;z(Lawt;)Lawt;
      intermediary method_8733 Lnet/minecraft/class_1449;method_8733(Lnet/minecraft/class_2232;)Lnet/minecraft/class_2232;
      named method_8733 Lnet/minecraft/block/AbstractRedstoneGateBlock;method_8733(Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/BlockState;
    • 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 d Laow;d(Laow;)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
    • 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 Laow;f()Lamm;
      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;
    • method_14307

      public BlockRenderLayer method_14307(BlockView view, BlockState state, BlockPos pos, Direction direction)
      Overrides:
      method_14307 in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Laow;a(Lamy;Lawt;Let;Lfa;)Lawr;
      intermediary method_14307 Lnet/minecraft/class_197;method_14307(Lnet/minecraft/class_1158;Lnet/minecraft/class_2232;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;)Lnet/minecraft/class_3225;
      named method_14307 Lnet/minecraft/block/Block;method_14307(Lnet/minecraft/world/BlockView;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Lnet/minecraft/block/BlockRenderLayer;