Class AbstractRedstoneGateBlock

Direct Known Subclasses:
ComparatorBlock, RepeaterBlock

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

    • locked

      protected final boolean locked
      Mappings:
      Namespace Name Mixin selector
      official a Laiu;a: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> Laiu;<init>(Z)V
      intermediary <init> Lnet/minecraft/class_1449;<init>(Z)V
      named <init> Lnet/minecraft/block/AbstractRedstoneGateBlock;<init>(Z)V
  • Method Details

    • 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 Laht;d()Z
      intermediary method_441 Lnet/minecraft/class_197;method_441()Z
      named renderAsNormalBlock Lnet/minecraft/block/Block;renderAsNormalBlock()Z
    • canPlaceBlockAt

      public boolean canPlaceBlockAt(World world, int x, int y, int z)
      Overrides:
      canPlaceBlockAt in class Block
      Mappings:
      Namespace Name Mixin selector
      official c Laht;c(Lafm;III)Z
      intermediary method_434 Lnet/minecraft/class_197;method_434(Lnet/minecraft/class_1150;III)Z
      named canPlaceBlockAt Lnet/minecraft/block/Block;canPlaceBlockAt(Lnet/minecraft/world/World;III)Z
    • canStayPlaced

      public boolean canStayPlaced(World world, int x, int y, int z)
      Overrides:
      canStayPlaced in class Block
      Mappings:
      Namespace Name Mixin selector
      official j Laht;j(Lafm;III)Z
      intermediary method_450 Lnet/minecraft/class_197;method_450(Lnet/minecraft/class_1150;III)Z
      named canStayPlaced Lnet/minecraft/block/Block;canStayPlaced(Lnet/minecraft/world/World;III)Z
    • onTick

      public void onTick(World world, int x, int y, int z, Random random)
      Overrides:
      onTick in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(Lafm;IIILjava/util/Random;)V
      intermediary method_436 Lnet/minecraft/class_197;method_436(Lnet/minecraft/class_1150;IIILjava/util/Random;)V
      named onTick Lnet/minecraft/block/Block;onTick(Lnet/minecraft/world/World;IIILjava/util/Random;)V
    • getTexture

      @Environment(CLIENT) public Texture getTexture(int side, int blockData)
      Overrides:
      getTexture in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(II)Lpr;
      intermediary method_395 Lnet/minecraft/class_197;method_395(II)Lnet/minecraft/class_1557;
      named getTexture Lnet/minecraft/block/Block;getTexture(II)Lnet/minecraft/client/Texture;
    • shouldRenderSide

      @Environment(CLIENT) public boolean shouldRenderSide(BlockView world, int x, int y, int z, int blockData)
      Overrides:
      shouldRenderSide in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(Lafw;IIII)Z
      intermediary method_447 Lnet/minecraft/class_197;method_447(Lnet/minecraft/class_1158;IIII)Z
      named shouldRenderSide Lnet/minecraft/block/Block;shouldRenderSide(Lnet/minecraft/world/BlockView;IIII)Z
    • getBlockType

      public int getBlockType()
      Overrides:
      getBlockType in class Block
      Mappings:
      Namespace Name Mixin selector
      official b Laht;b()I
      intermediary method_429 Lnet/minecraft/class_197;method_429()I
      named getBlockType Lnet/minecraft/block/Block;getBlockType()I
    • isLocked

      protected boolean isLocked(int int2)
      Mappings:
      Namespace Name Mixin selector
      official c Laiu;c(I)Z
      intermediary method_4753 Lnet/minecraft/class_1449;method_4753(I)Z
      named isLocked Lnet/minecraft/block/AbstractRedstoneGateBlock;isLocked(I)Z
    • getStrongRedstonePower

      public int getStrongRedstonePower(BlockView world, int x, int y, int z, int direction)
      Overrides:
      getStrongRedstonePower in class Block
      Mappings:
      Namespace Name Mixin selector
      official c Laht;c(Lafw;IIII)I
      intermediary method_444 Lnet/minecraft/class_197;method_444(Lnet/minecraft/class_1158;IIII)I
      named getStrongRedstonePower Lnet/minecraft/block/Block;getStrongRedstonePower(Lnet/minecraft/world/BlockView;IIII)I
    • getWeakRedstonePower

      public int getWeakRedstonePower(BlockView world, int x, int y, int z, int direction)
      Overrides:
      getWeakRedstonePower in class Block
      Mappings:
      Namespace Name Mixin selector
      official b Laht;b(Lafw;IIII)I
      intermediary method_426 Lnet/minecraft/class_197;method_426(Lnet/minecraft/class_1158;IIII)I
      named getWeakRedstonePower Lnet/minecraft/block/Block;getWeakRedstonePower(Lnet/minecraft/world/BlockView;IIII)I
    • onNeighborUpdate

      public void onNeighborUpdate(World world, int x, int y, int z, Block block)
      Overrides:
      onNeighborUpdate in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(Lafm;IIILaht;)V
      intermediary method_408 Lnet/minecraft/class_197;method_408(Lnet/minecraft/class_1150;IIILnet/minecraft/class_197;)V
      named onNeighborUpdate Lnet/minecraft/block/Block;onNeighborUpdate(Lnet/minecraft/world/World;IIILnet/minecraft/block/Block;)V
    • updatePoweredBlock

      protected void updatePoweredBlock(World world, int x, int y, int z, Block block)
      Mappings:
      Namespace Name Mixin selector
      official b Laiu;b(Lafm;IIILaht;)V
      intermediary method_4760 Lnet/minecraft/class_1449;method_4760(Lnet/minecraft/class_1150;IIILnet/minecraft/class_197;)V
      named updatePoweredBlock Lnet/minecraft/block/AbstractRedstoneGateBlock;updatePoweredBlock(Lnet/minecraft/world/World;IIILnet/minecraft/block/Block;)V
    • isLocked

      public boolean isLocked(BlockView world, int x, int y, int z, int int2)
      Mappings:
      Namespace Name Mixin selector
      official g Laiu;g(Lafw;IIII)Z
      intermediary method_4758 Lnet/minecraft/class_1449;method_4758(Lnet/minecraft/class_1158;IIII)Z
      named isLocked Lnet/minecraft/block/AbstractRedstoneGateBlock;isLocked(Lnet/minecraft/world/BlockView;IIII)Z
    • isPoweredAtFace

      protected boolean isPoweredAtFace(World world, int x, int y, int z, int blockData)
      Mappings:
      Namespace Name Mixin selector
      official a Laiu;a(Lafm;IIII)Z
      intermediary method_4754 Lnet/minecraft/class_1449;method_4754(Lnet/minecraft/class_1150;IIII)Z
      named isPoweredAtFace Lnet/minecraft/block/AbstractRedstoneGateBlock;isPoweredAtFace(Lnet/minecraft/world/World;IIII)Z
    • getInputPower

      protected int getInputPower(World world, int x, int y, int z, int blockData)
      Mappings:
      Namespace Name Mixin selector
      official h Laiu;h(Lafm;IIII)I
      intermediary method_4757 Lnet/minecraft/class_1449;method_4757(Lnet/minecraft/class_1150;IIII)I
      named getInputPower Lnet/minecraft/block/AbstractRedstoneGateBlock;getInputPower(Lnet/minecraft/world/World;IIII)I
    • method_4761

      protected int method_4761(BlockView world, int x, int y, int z, int blockData)
      Mappings:
      Namespace Name Mixin selector
      official h Laiu;h(Lafw;IIII)I
      intermediary method_4761 Lnet/minecraft/class_1449;method_4761(Lnet/minecraft/class_1158;IIII)I
      named method_4761 Lnet/minecraft/block/AbstractRedstoneGateBlock;method_4761(Lnet/minecraft/world/BlockView;IIII)I
    • method_4763

      protected int method_4763(BlockView world, int x, int y, int z, int blockData)
      Mappings:
      Namespace Name Mixin selector
      official i Laiu;i(Lafw;IIII)I
      intermediary method_4763 Lnet/minecraft/class_1449;method_4763(Lnet/minecraft/class_1158;IIII)I
      named method_4763 Lnet/minecraft/block/AbstractRedstoneGateBlock;method_4763(Lnet/minecraft/world/BlockView;IIII)I
    • 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 f Laht;f()Z
      intermediary method_466 Lnet/minecraft/class_197;method_466()Z
      named emitsRedstonePower Lnet/minecraft/block/Block;emitsRedstonePower()Z
    • onBreak

      public void onBreak(World world, int x, int y, int z, LivingEntity entity, ItemStack item)
      Overrides:
      onBreak in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(Lafm;IIILrg;Labo;)V
      intermediary method_419 Lnet/minecraft/class_197;method_419(Lnet/minecraft/class_1150;IIILnet/minecraft/class_1699;Lnet/minecraft/class_1071;)V
      named onBreak Lnet/minecraft/block/Block;onBreak(Lnet/minecraft/world/World;IIILnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;)V
    • breakNaturally

      public void breakNaturally(World world, int x, int y, int z)
      Overrides:
      breakNaturally in class Block
      Mappings:
      Namespace Name Mixin selector
      official b Laht;b(Lafm;III)V
      intermediary method_460 Lnet/minecraft/class_197;method_460(Lnet/minecraft/class_1150;III)V
      named breakNaturally Lnet/minecraft/block/Block;breakNaturally(Lnet/minecraft/world/World;III)V
    • method_4766

      protected void method_4766(World world, int x, int y, int z)
      Mappings:
      Namespace Name Mixin selector
      official e Laiu;e(Lafm;III)V
      intermediary method_4766 Lnet/minecraft/class_1449;method_4766(Lnet/minecraft/class_1150;III)V
      named method_4766 Lnet/minecraft/block/AbstractRedstoneGateBlock;method_4766(Lnet/minecraft/world/World;III)V
    • onDestroyed

      public void onDestroyed(World world, int x, int y, int z, int blockData)
      Overrides:
      onDestroyed in class Block
      Mappings:
      Namespace Name Mixin selector
      official b Laht;b(Lafm;IIII)V
      intermediary method_451 Lnet/minecraft/class_197;method_451(Lnet/minecraft/class_1150;IIII)V
      named onDestroyed Lnet/minecraft/block/Block;onDestroyed(Lnet/minecraft/world/World;IIII)V
    • hasTransperancy

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

      protected boolean emitsRedstonePower(Block block)
      Mappings:
      Namespace Name Mixin selector
      official a Laiu;a(Laht;)Z
      intermediary method_6470 Lnet/minecraft/class_1449;method_6470(Lnet/minecraft/class_197;)Z
      named emitsRedstonePower Lnet/minecraft/block/AbstractRedstoneGateBlock;emitsRedstonePower(Lnet/minecraft/block/Block;)Z
    • getInputLevel

      protected int getInputLevel(BlockView world, int x, int y, int z, int blockData)
      Mappings:
      Namespace Name Mixin selector
      official f Laiu;f(Lafw;IIII)I
      intermediary method_4755 Lnet/minecraft/class_1449;method_4755(Lnet/minecraft/class_1158;IIII)I
      named getInputLevel Lnet/minecraft/block/AbstractRedstoneGateBlock;getInputLevel(Lnet/minecraft/world/BlockView;IIII)I
    • isRedstoneGate

      public static boolean isRedstoneGate(Block block)
      Mappings:
      Namespace Name Mixin selector
      official d Laiu;d(Laht;)Z
      intermediary method_6471 Lnet/minecraft/class_1449;method_6471(Lnet/minecraft/class_197;)Z
      named isRedstoneGate Lnet/minecraft/block/AbstractRedstoneGateBlock;isRedstoneGate(Lnet/minecraft/block/Block;)Z
    • isComparator

      public boolean isComparator(Block block)
      Mappings:
      Namespace Name Mixin selector
      official e Laiu;e(Laht;)Z
      intermediary method_6472 Lnet/minecraft/class_1449;method_6472(Lnet/minecraft/class_197;)Z
      named isComparator Lnet/minecraft/block/AbstractRedstoneGateBlock;isComparator(Lnet/minecraft/block/Block;)Z
    • isUnableToPowerBlockAtOutputFace

      public boolean isUnableToPowerBlockAtOutputFace(World world, int x, int y, int z, int blockData)
      Mappings:
      Namespace Name Mixin selector
      official i Laiu;i(Lafm;IIII)Z
      intermediary method_4765 Lnet/minecraft/class_1449;method_4765(Lnet/minecraft/class_1150;IIII)Z
      named isUnableToPowerBlockAtOutputFace Lnet/minecraft/block/AbstractRedstoneGateBlock;isUnableToPowerBlockAtOutputFace(Lnet/minecraft/world/World;IIII)Z
    • setTickDelay

      protected int setTickDelay(int delay)
      Mappings:
      Namespace Name Mixin selector
      official k Laiu;k(I)I
      intermediary method_4764 Lnet/minecraft/class_1449;method_4764(I)I
      named setTickDelay Lnet/minecraft/block/AbstractRedstoneGateBlock;setTickDelay(I)I
    • setInternalTickDelay

      protected abstract int setInternalTickDelay(int delay)
      Mappings:
      Namespace Name Mixin selector
      official b Laiu;b(I)I
      intermediary method_4768 Lnet/minecraft/class_1449;method_4768(I)I
      named setInternalTickDelay Lnet/minecraft/block/AbstractRedstoneGateBlock;setInternalTickDelay(I)I
    • POWERED_COMPARATOR

      protected abstract AbstractRedstoneGateBlock POWERED_COMPARATOR()
      Mappings:
      Namespace Name Mixin selector
      official e Laiu;e()Laiu;
      intermediary method_4767 Lnet/minecraft/class_1449;method_4767()Lnet/minecraft/class_1449;
      named POWERED_COMPARATOR Lnet/minecraft/block/AbstractRedstoneGateBlock;POWERED_COMPARATOR()Lnet/minecraft/block/AbstractRedstoneGateBlock;
    • UNPOWERED_COMPARATOR

      protected abstract AbstractRedstoneGateBlock UNPOWERED_COMPARATOR()
      Mappings:
      Namespace Name Mixin selector
      official i Laiu;i()Laiu;
      intermediary method_4769 Lnet/minecraft/class_1449;method_4769()Lnet/minecraft/class_1449;
      named UNPOWERED_COMPARATOR Lnet/minecraft/block/AbstractRedstoneGateBlock;UNPOWERED_COMPARATOR()Lnet/minecraft/block/AbstractRedstoneGateBlock;
    • 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 c Laht;c(Laht;)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