Class AbstractRedstoneGateBlock

All Implemented Interfaces:
ItemConvertible
Direct Known Subclasses:
ComparatorBlock, RepeaterBlock

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

    • SHAPE

      protected static final VoxelShape SHAPE
      Mappings:
      Namespace Name Mixin selector
      official b Lceq;b:Ldpf;
      intermediary field_10912 Lnet/minecraft/class_2312;field_10912:Lnet/minecraft/class_265;
      named SHAPE Lnet/minecraft/block/AbstractRedstoneGateBlock;SHAPE:Lnet/minecraft/util/shape/VoxelShape;
    • POWERED

      public static final BooleanProperty POWERED
      Mappings:
      Namespace Name Mixin selector
      official c Lceq;c:Lcou;
      intermediary field_10911 Lnet/minecraft/class_2312;field_10911:Lnet/minecraft/class_2746;
      named POWERED Lnet/minecraft/block/AbstractRedstoneGateBlock;POWERED:Lnet/minecraft/state/property/BooleanProperty;
  • Constructor Details

    • AbstractRedstoneGateBlock

      protected AbstractRedstoneGateBlock(AbstractBlock.Settings settings)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcob;<init>(Lcob$c;)V
      intermediary <init> Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)V
      named <init> Lnet/minecraft/block/AbstractBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;)V
  • Method Details

    • getOutlineShape

      public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
      Overrides:
      getOutlineShape in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcob;a(Lcoc;Lbzj;Lgh;Ldor;)Ldpf;
      intermediary method_9530 Lnet/minecraft/class_4970;method_9530(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_3726;)Lnet/minecraft/class_265;
      named getOutlineShape Lnet/minecraft/block/AbstractBlock;getOutlineShape(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/ShapeContext;)Lnet/minecraft/util/shape/VoxelShape;
    • canPlaceAt

      public boolean canPlaceAt(BlockState state, WorldView world, BlockPos pos)
      Overrides:
      canPlaceAt in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcob;a(Lcoc;Lcag;Lgh;)Z
      intermediary method_9558 Lnet/minecraft/class_4970;method_9558(Lnet/minecraft/class_2680;Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;)Z
      named canPlaceAt Lnet/minecraft/block/AbstractBlock;canPlaceAt(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)Z
    • scheduledTick

      public void scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random)
      Overrides:
      scheduledTick in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcob;a(Lcoc;Ladi;Lgh;Ljava/util/Random;)V
      intermediary method_9588 Lnet/minecraft/class_4970;method_9588(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Ljava/util/Random;)V
      named scheduledTick Lnet/minecraft/block/AbstractBlock;scheduledTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)V
    • getStrongRedstonePower

      public int getStrongRedstonePower(BlockState state, BlockView world, BlockPos pos, Direction direction)
      Overrides:
      getStrongRedstonePower in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official b Lcob;b(Lcoc;Lbzj;Lgh;Lgm;)I
      intermediary method_9603 Lnet/minecraft/class_4970;method_9603(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)I
      named getStrongRedstonePower Lnet/minecraft/block/AbstractBlock;getStrongRedstonePower(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)I
    • getWeakRedstonePower

      public int getWeakRedstonePower(BlockState state, BlockView world, BlockPos pos, Direction direction)
      Overrides:
      getWeakRedstonePower in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcob;a(Lcoc;Lbzj;Lgh;Lgm;)I
      intermediary method_9524 Lnet/minecraft/class_4970;method_9524(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)I
      named getWeakRedstonePower Lnet/minecraft/block/AbstractBlock;getWeakRedstonePower(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)I
    • neighborUpdate

      public void neighborUpdate(BlockState state, World world, BlockPos pos, Block block, BlockPos fromPos, boolean notify)
      Overrides:
      neighborUpdate in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcob;a(Lcoc;Lcad;Lgh;Lccy;Lgh;Z)V
      intermediary method_9612 Lnet/minecraft/class_4970;method_9612(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2248;Lnet/minecraft/class_2338;Z)V
      named neighborUpdate Lnet/minecraft/block/AbstractBlock;neighborUpdate(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/Block;Lnet/minecraft/util/math/BlockPos;Z)V
    • updatePowered

      protected void updatePowered(World world, BlockPos pos, BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official c Lceq;c(Lcad;Lgh;Lcoc;)V
      intermediary method_9998 Lnet/minecraft/class_2312;method_9998(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
      named updatePowered Lnet/minecraft/block/AbstractRedstoneGateBlock;updatePowered(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
    • isLocked

      public boolean isLocked(WorldView world, BlockPos pos, BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official a Lceq;a(Lcag;Lgh;Lcoc;)Z
      intermediary method_9996 Lnet/minecraft/class_2312;method_9996(Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Z
      named isLocked Lnet/minecraft/block/AbstractRedstoneGateBlock;isLocked(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Z
    • hasPower

      protected boolean hasPower(World world, BlockPos pos, BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official a Lceq;a(Lcad;Lgh;Lcoc;)Z
      intermediary method_9990 Lnet/minecraft/class_2312;method_9990(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Z
      named hasPower Lnet/minecraft/block/AbstractRedstoneGateBlock;hasPower(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Z
    • getPower

      protected int getPower(World world, BlockPos pos, BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official b Lceq;b(Lcad;Lgh;Lcoc;)I
      intermediary method_9991 Lnet/minecraft/class_2312;method_9991(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)I
      named getPower Lnet/minecraft/block/AbstractRedstoneGateBlock;getPower(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)I
    • getMaxInputLevelSides

      protected int getMaxInputLevelSides(WorldView world, BlockPos pos, BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official b Lceq;b(Lcag;Lgh;Lcoc;)I
      intermediary method_10000 Lnet/minecraft/class_2312;method_10000(Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)I
      named getMaxInputLevelSides Lnet/minecraft/block/AbstractRedstoneGateBlock;getMaxInputLevelSides(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)I
    • getInputLevel

      protected int getInputLevel(WorldView world, BlockPos pos, Direction dir)
      Mappings:
      Namespace Name Mixin selector
      official b Lceq;b(Lcag;Lgh;Lgm;)I
      intermediary method_9995 Lnet/minecraft/class_2312;method_9995(Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)I
      named getInputLevel Lnet/minecraft/block/AbstractRedstoneGateBlock;getInputLevel(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)I
    • emitsRedstonePower

      public boolean emitsRedstonePower(BlockState state)
      Overrides:
      emitsRedstonePower in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official f_ Lcob;f_(Lcoc;)Z
      intermediary method_9506 Lnet/minecraft/class_4970;method_9506(Lnet/minecraft/class_2680;)Z
      named emitsRedstonePower Lnet/minecraft/block/AbstractBlock;emitsRedstonePower(Lnet/minecraft/block/BlockState;)Z
    • getPlacementState

      public BlockState getPlacementState(ItemPlacementContext ctx)
      Overrides:
      getPlacementState in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lccy;a(Lbwe;)Lcoc;
      intermediary method_9605 Lnet/minecraft/class_2248;method_9605(Lnet/minecraft/class_1750;)Lnet/minecraft/class_2680;
      named getPlacementState Lnet/minecraft/block/Block;getPlacementState(Lnet/minecraft/item/ItemPlacementContext;)Lnet/minecraft/block/BlockState;
    • onPlaced

      public void onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)
      Overrides:
      onPlaced in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lccy;a(Lcad;Lgh;Lcoc;Laxh;Lbue;)V
      intermediary method_9567 Lnet/minecraft/class_2248;method_9567(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_1309;Lnet/minecraft/class_1799;)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
    • onBlockAdded

      public void onBlockAdded(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify)
      Overrides:
      onBlockAdded in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official b Lcob;b(Lcoc;Lcad;Lgh;Lcoc;Z)V
      intermediary method_9615 Lnet/minecraft/class_4970;method_9615(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Z)V
      named onBlockAdded Lnet/minecraft/block/AbstractBlock;onBlockAdded(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Z)V
    • onStateReplaced

      public void onStateReplaced(BlockState state, World world, BlockPos pos, BlockState newState, boolean moved)
      Called in WorldChunk.setBlockState(BlockPos, BlockState, boolean) if newState is different from state. Vanilla blocks perform removal cleanups here.
      Overrides:
      onStateReplaced in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcob;a(Lcoc;Lcad;Lgh;Lcoc;Z)V
      intermediary method_9536 Lnet/minecraft/class_4970;method_9536(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Z)V
      named onStateReplaced Lnet/minecraft/block/AbstractBlock;onStateReplaced(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Z)V
    • updateTarget

      protected void updateTarget(World world, BlockPos pos, BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official d Lceq;d(Lcad;Lgh;Lcoc;)V
      intermediary method_9997 Lnet/minecraft/class_2312;method_9997(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
      named updateTarget Lnet/minecraft/block/AbstractRedstoneGateBlock;updateTarget(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
    • isValidInput

      protected boolean isValidInput(BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official h Lceq;h(Lcoc;)Z
      intermediary method_9989 Lnet/minecraft/class_2312;method_9989(Lnet/minecraft/class_2680;)Z
      named isValidInput Lnet/minecraft/block/AbstractRedstoneGateBlock;isValidInput(Lnet/minecraft/block/BlockState;)Z
    • getOutputLevel

      protected int getOutputLevel(BlockView world, BlockPos pos, BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official b Lceq;b(Lbzj;Lgh;Lcoc;)I
      intermediary method_9993 Lnet/minecraft/class_2312;method_9993(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)I
      named getOutputLevel Lnet/minecraft/block/AbstractRedstoneGateBlock;getOutputLevel(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)I
    • isRedstoneGate

      public static boolean isRedstoneGate(BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official n Lceq;n(Lcoc;)Z
      intermediary method_9999 Lnet/minecraft/class_2312;method_9999(Lnet/minecraft/class_2680;)Z
      named isRedstoneGate Lnet/minecraft/block/AbstractRedstoneGateBlock;isRedstoneGate(Lnet/minecraft/block/BlockState;)Z
    • isTargetNotAligned

      public boolean isTargetNotAligned(BlockView world, BlockPos pos, BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official c Lceq;c(Lbzj;Lgh;Lcoc;)Z
      intermediary method_9988 Lnet/minecraft/class_2312;method_9988(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Z
      named isTargetNotAligned Lnet/minecraft/block/AbstractRedstoneGateBlock;isTargetNotAligned(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Z
    • getUpdateDelayInternal

      protected abstract int getUpdateDelayInternal(BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official g Lceq;g(Lcoc;)I
      intermediary method_9992 Lnet/minecraft/class_2312;method_9992(Lnet/minecraft/class_2680;)I
      named getUpdateDelayInternal Lnet/minecraft/block/AbstractRedstoneGateBlock;getUpdateDelayInternal(Lnet/minecraft/block/BlockState;)I