Package net.minecraft.block
Class DetectorRailBlock
java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.AbstractRailBlock
net.minecraft.block.DetectorRailBlock
- All Implemented Interfaces:
FluidDrainable
,FluidFillable
,Waterloggable
,ItemConvertible
public class DetectorRailBlock extends AbstractRailBlock
- Mappings:
Namespace Name official byl
intermediary net/minecraft/class_2313
named net/minecraft/block/DetectorRailBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.NeighborGroup
Nested classes/interfaces inherited from class net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>
-
Field Summary
Fields Modifier and Type Field Description static BooleanProperty
POWERED
static EnumProperty<RailShape>
SHAPE
Fields inherited from class net.minecraft.block.AbstractRailBlock
ASCENDING_SHAPE, STRAIGHT_SHAPE, WATERLOGGED
Fields inherited from class net.minecraft.block.Block
LOGGER, STATE_IDS, stateManager
Fields inherited from class net.minecraft.block.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier
-
Constructor Summary
Constructors Constructor Description DetectorRailBlock(AbstractBlock.Settings settings)
-
Method Summary
Methods inherited from class net.minecraft.block.AbstractRailBlock
canMakeCurves, canPlaceAt, getFluidState, getOutlineShape, getPistonBehavior, getPlacementState, getStateForNeighborUpdate, isRail, isRail, neighborUpdate, onStateReplaced, updateBlockState, updateBlockState, updateCurves
Methods inherited from class net.minecraft.block.Block
addStacksForDisplay, afterBreak, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropStack, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getRawIdFromState, getShapesForStates, getSlipperiness, getSoundGroup, getStateFromRawId, getStateManager, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasRandomTicks, hasTopRim, isFaceFullSquare, isShapeFullCube, isTranslucent, method_33614, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, toString
Methods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canReplace, createScreenHandlerFactory, getAmbientOcclusionLightLevel, getCollisionShape, getCullingShape, getDefaultMapColor, getDroppedStacks, getLootTableId, getMaxModelOffset, getOffsetType, getOpacity, getRaycastShape, getRenderingSeed, getRenderType, getSidesShape, getVisualShape, hasSidedTransparency, isSideInvisible, onBlockBreakStart, onProjectileHit, onStacksDropped, onSyncedBlockEvent, onUse, prepare, randomTick
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.block.Waterloggable
canFillWithFluid, getBucketFillSound, tryDrainFluid, tryFillWithFluid
-
Field Details
-
SHAPE
- Mappings:
Namespace Name Mixin selector official d
Lbyl;d:Lcir;
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
- Mappings:
Namespace Name Mixin selector official e
Lbyl;e:Lcik;
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;
-
-
Constructor Details
-
DetectorRailBlock
- Mappings:
Namespace Name Mixin selector official <init>
Lchs;<init>(Lchs$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
- Overrides:
emitsRedstonePower
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official d_
Lchs;d_(Lcht;)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
- Overrides:
onEntityCollision
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official a
Lchs;a(Lcht;Lbtv;Lfx;Laqv;)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
- Overrides:
scheduledTick
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official a_
Lchs;a_(Lcht;Laav;Lfx;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 classAbstractBlock
- Mappings:
Namespace Name Mixin selector official a
Lchs;a(Lcht;Lbsz;Lfx;Lgc;)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 classAbstractBlock
- Mappings:
Namespace Name Mixin selector official b
Lchs;b(Lcht;Lbsz;Lfx;Lgc;)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
- Mappings:
Namespace Name Mixin selector official a
Lbyl;a(Lbtv;Lfx;Lcht;)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
- Mappings:
Namespace Name Mixin selector official b
Lbyl;b(Lbtv;Lfx;Lcht;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 classAbstractRailBlock
- Mappings:
Namespace Name Mixin selector official b
Lchs;b(Lcht;Lbtv;Lfx;Lcht;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
- Specified by:
getShapeProperty
in classAbstractRailBlock
- Mappings:
Namespace Name Mixin selector official am_
Lbwk;am_()Lciw;
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
- Overrides:
hasComparatorOutput
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official b
Lchs;b(Lcht;)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
- Overrides:
getComparatorOutput
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official a
Lchs;a(Lcht;Lbtv;Lfx;)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
Lbyl;a(Lbtv;Lfx;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
- Mappings:
Namespace Name Mixin selector official a
Lbyl;a(Lfx;)Ldip;
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
Applies a block rotation to a block state.By default, this returns the provided block state.
- Overrides:
rotate
in classAbstractBlock
- Returns:
- the rotated block state
- Mappings:
Namespace Name Mixin selector official a
Lchs;a(Lcht;Lccm;)Lcht;
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
- Overrides:
mirror
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official a
Lchs;a(Lcht;Lcbb;)Lcht;
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
- Overrides:
appendProperties
in classBlock
- Mappings:
Namespace Name Mixin selector official a
Lbwu;a(Lchu$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
-