Class DetectorRailBlock

All Implemented Interfaces:
FluidDrainable, FluidFillable, Waterloggable, ItemConvertible

public class DetectorRailBlock extends AbstractRailBlock
Mappings:
Namespace Name
official cep
intermediary net/minecraft/class_2313
named net/minecraft/block/DetectorRailBlock
  • Field Details

    • SHAPE

      public static final EnumProperty<RailShape> SHAPE
      Mappings:
      Namespace Name Mixin selector
      official d Lcep;d:Lcpb;
      intermediary field_10914 Lnet/minecraft/class_2313;field_10914:Lnet/minecraft/class_2754;
      named SHAPE Lnet/minecraft/block/DetectorRailBlock;SHAPE:Lnet/minecraft/state/property/EnumProperty;
    • POWERED

      public static final BooleanProperty POWERED
      Mappings:
      Namespace Name Mixin selector
      official e Lcep;e:Lcou;
      intermediary field_10913 Lnet/minecraft/class_2313;field_10913:Lnet/minecraft/class_2746;
      named POWERED Lnet/minecraft/block/DetectorRailBlock;POWERED:Lnet/minecraft/state/property/BooleanProperty;
    • SCHEDULED_TICK_DELAY

      private static final int SCHEDULED_TICK_DELAY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official f Lcep;f:I
      intermediary field_31081 Lnet/minecraft/class_2313;field_31081:I
      named SCHEDULED_TICK_DELAY Lnet/minecraft/block/DetectorRailBlock;SCHEDULED_TICK_DELAY:I
  • Constructor Details

    • DetectorRailBlock

      public DetectorRailBlock(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

    • 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
    • onEntityCollision

      public void onEntityCollision(BlockState state, World world, BlockPos pos, Entity entity)
      Overrides:
      onEntityCollision in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcob;a(Lcoc;Lcad;Lgh;Lawt;)V
      intermediary method_9548 Lnet/minecraft/class_4970;method_9548(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1297;)V
      named onEntityCollision Lnet/minecraft/block/AbstractBlock;onEntityCollision(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;)V
    • 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
    • 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
    • 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
    • updatePoweredStatus

      private void updatePoweredStatus(World world, BlockPos pos, BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official a Lcep;a(Lcad;Lgh;Lcoc;)V
      intermediary method_10002 Lnet/minecraft/class_2313;method_10002(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
      named updatePoweredStatus Lnet/minecraft/block/DetectorRailBlock;updatePoweredStatus(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
    • updateNearbyRails

      protected void updateNearbyRails(World world, BlockPos pos, BlockState state, boolean unpowering)
      Mappings:
      Namespace Name Mixin selector
      official b Lcep;b(Lcad;Lgh;Lcoc;Z)V
      intermediary method_10003 Lnet/minecraft/class_2313;method_10003(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Z)V
      named updateNearbyRails Lnet/minecraft/block/DetectorRailBlock;updateNearbyRails(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Z)V
    • onBlockAdded

      public void onBlockAdded(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify)
      Overrides:
      onBlockAdded in class AbstractRailBlock
      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
    • getShapeProperty

      public Property<RailShape> getShapeProperty()
      Specified by:
      getShapeProperty in class AbstractRailBlock
      Mappings:
      Namespace Name Mixin selector
      official d Lcco;d()Lcpg;
      intermediary method_9474 Lnet/minecraft/class_2241;method_9474()Lnet/minecraft/class_2769;
      named getShapeProperty Lnet/minecraft/block/AbstractRailBlock;getShapeProperty()Lnet/minecraft/state/property/Property;
    • hasComparatorOutput

      public boolean hasComparatorOutput(BlockState state)
      Overrides:
      hasComparatorOutput in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official d_ Lcob;d_(Lcoc;)Z
      intermediary method_9498 Lnet/minecraft/class_4970;method_9498(Lnet/minecraft/class_2680;)Z
      named hasComparatorOutput Lnet/minecraft/block/AbstractBlock;hasComparatorOutput(Lnet/minecraft/block/BlockState;)Z
    • getComparatorOutput

      public int getComparatorOutput(BlockState state, World world, BlockPos pos)
      Overrides:
      getComparatorOutput in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcob;a(Lcoc;Lcad;Lgh;)I
      intermediary method_9572 Lnet/minecraft/class_4970;method_9572(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)I
      named getComparatorOutput Lnet/minecraft/block/AbstractBlock;getComparatorOutput(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)I
    • getCarts

      private <T extends AbstractMinecartEntity> List<T> getCarts(World world, BlockPos pos, Class<T> entityClass, Predicate<Entity> entityPredicate)
      Mappings:
      Namespace Name Mixin selector
      official a Lcep;a(Lcad;Lgh;Ljava/lang/Class;Ljava/util/function/Predicate;)Ljava/util/List;
      intermediary method_10001 Lnet/minecraft/class_2313;method_10001(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Ljava/lang/Class;Ljava/util/function/Predicate;)Ljava/util/List;
      named getCarts Lnet/minecraft/block/DetectorRailBlock;getCarts(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Ljava/lang/Class;Ljava/util/function/Predicate;)Ljava/util/List;
    • getCartDetectionBox

      private Box getCartDetectionBox(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lcep;a(Lgh;)Ldoh;
      intermediary method_10004 Lnet/minecraft/class_2313;method_10004(Lnet/minecraft/class_2338;)Lnet/minecraft/class_238;
      named getCartDetectionBox Lnet/minecraft/block/DetectorRailBlock;getCartDetectionBox(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/Box;
    • rotate

      public BlockState rotate(BlockState state, BlockRotation rotation)
      Applies a block rotation to a block state.

      By default, this returns the provided block state.

      Overrides:
      rotate in class AbstractBlock
      Returns:
      the rotated block state
      Mappings:
      Namespace Name Mixin selector
      official a Lcob;a(Lcoc;Lciu;)Lcoc;
      intermediary method_9598 Lnet/minecraft/class_4970;method_9598(Lnet/minecraft/class_2680;Lnet/minecraft/class_2470;)Lnet/minecraft/class_2680;
      named rotate Lnet/minecraft/block/AbstractBlock;rotate(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockRotation;)Lnet/minecraft/block/BlockState;
    • mirror

      public BlockState mirror(BlockState state, BlockMirror mirror)
      Overrides:
      mirror in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcob;a(Lcoc;Lchh;)Lcoc;
      intermediary method_9569 Lnet/minecraft/class_4970;method_9569(Lnet/minecraft/class_2680;Lnet/minecraft/class_2415;)Lnet/minecraft/class_2680;
      named mirror Lnet/minecraft/block/AbstractBlock;mirror(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockMirror;)Lnet/minecraft/block/BlockState;
    • appendProperties

      protected void appendProperties(StateManager.Builder<Block,BlockState> builder)
      Overrides:
      appendProperties in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lccy;a(Lcod$a;)V
      intermediary method_9515 Lnet/minecraft/class_2248;method_9515(Lnet/minecraft/class_2689$class_2690;)V
      named appendProperties Lnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)V