Package net.minecraft.block
Class DetectorRailBlock
java.lang.Object
net.minecraft.block.Block
net.minecraft.block.AbstractRailBlock
net.minecraft.block.DetectorRailBlock
- Mappings:
Namespace Name official aitintermediary net/minecraft/class_124named net/minecraft/block/DetectorRailBlock
-
Field Summary
FieldsFields inherited from class net.minecraft.block.AbstractRailBlock
allowCurvesFields inherited from class net.minecraft.block.Block
blastResistance, blockEntity, boundingBoxMaxX, boundingBoxMaxY, boundingBoxMaxZ, boundingBoxMinX, boundingBoxMinY, boundingBoxMinZ, field_469, field_483, field_484, field_486, field_487, field_6259, field_7261, field_7262, field_7263, field_7264, field_7265, field_7266, field_7267, field_7268, fullBlock, hardness, lightLevel, material, opacity, particleGravity, randomTicks, REGISTRY, side, slipperiness, soundGroup, stats, transluscent, useNeighbourLight -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbreakNaturally(World world, int x, int y, int z) booleanReturns whether the current block emits a redstone signal.intgetStrongRedstonePower(BlockView world, int x, int y, int z, int direction) getTexture(int side, int blockData) intgetTickRate(World world) Returns the block's tick rate.intgetWeakRedstonePower(BlockView world, int x, int y, int z, int direction) booleanReturns whether the block provides comparator output.private voidmethod_295(World world, int int2, int int3, int int4, int int5) intmethod_4793(World world, int int2, int int3, int int4, int int5) voidonEntityCollision(World world, int x, int y, int z, Entity entity) voidvoidregisterTextures(TextureRegistry registry) Methods inherited from class net.minecraft.block.AbstractRailBlock
canPlaceBlockAt, getBlockType, getDropCount, getPistonInteractionType, hasTransperancy, method_411, method_414, method_425, method_454, method_4737, method_4738, method_4740, method_4741, method_6439, onNeighborUpdate, renderAsNormalBlockMethods inherited from class net.minecraft.block.Block
appendItemStacks, areBlocksEqual, canStayPlaced, canStayPlaced, disableStats, get, getAmbientOcclusionLightLevel, getBlastResistance, getBlockFromItem, getBonusDrops, getById, getColor, getIdByBlock, getItemGroup, getLightLevel, getMaterial, getMaxX, getMaxY, getMaxZ, getMinX, getMinY, getMinZ, getOpacity, getSideTexture, getTextureName, getTranslatedName, getTranslationKey, hasBlockEntity, hasCollision, hasStats, isEqualTo, isFire, isFlowerPot, isFullBlock, isFullCube, isNormalBlock, isTransluscent, method_398, method_400, method_405, method_407, method_410, method_412, method_413, method_415, method_417, method_418, method_4185, method_4186, method_420, method_422, method_424, method_427, method_428, method_431, method_435, method_437, method_438, method_446, method_448, method_452, method_455, method_457, method_459, method_461, method_463, method_464, method_468, method_471, method_479, method_4790, method_4794, method_4798, method_5546, method_6444, method_6449, onActivated, onBreak, onDestroyed, requiresSilkTouch, setBlockItemBounds, setBlockSoundGroup, setBoundingBox, setItemGroup, setLightLevel, setOpacity, setResistance, setStrength, setTickRandomly, setTranslationKey, setUnbreakable, setup, shouldDropItemsOnExplosion, shouldRenderSide, ticksRandomly, usesNeighbourLight
-
Field Details
-
field_5538
- Mappings:
Namespace Name Mixin selector official bLait;b:[Lpr;intermediary field_5538Lnet/minecraft/class_124;field_5538:[Lnet/minecraft/class_1557;named field_5538Lnet/minecraft/block/DetectorRailBlock;field_5538:[Lnet/minecraft/client/Texture;
-
-
Constructor Details
-
DetectorRailBlock
public DetectorRailBlock()
-
-
Method Details
-
getTickRate
Returns the block's tick rate. Default is 10.- Overrides:
getTickRatein classBlock- Parameters:
world- The world that the block is placed in- Returns:
- Tick rate
- Mappings:
Namespace Name Mixin selector official aLaht;a(Lafm;)Iintermediary method_4789Lnet/minecraft/class_197;method_4789(Lnet/minecraft/class_1150;)Inamed getTickRateLnet/minecraft/block/Block;getTickRate(Lnet/minecraft/world/World;)I
-
emitsRedstonePower
public boolean emitsRedstonePower()Returns whether the current block emits a redstone signal. Used by comparators, Redstone Blocks, etc.- Overrides:
emitsRedstonePowerin classBlock- Returns:
- Whether the current block emits a redstone signal
- Mappings:
Namespace Name Mixin selector official fLaht;f()Zintermediary method_466Lnet/minecraft/class_197;method_466()Znamed emitsRedstonePowerLnet/minecraft/block/Block;emitsRedstonePower()Z
-
onEntityCollision
- Overrides:
onEntityCollisionin classBlock- Mappings:
Namespace Name Mixin selector official aLaht;a(Lafm;IIILqm;)Vintermediary method_416Lnet/minecraft/class_197;method_416(Lnet/minecraft/class_1150;IIILnet/minecraft/class_864;)Vnamed onEntityCollisionLnet/minecraft/block/Block;onEntityCollision(Lnet/minecraft/world/World;IIILnet/minecraft/entity/Entity;)V
-
onTick
- Overrides:
onTickin classBlock- Mappings:
Namespace Name Mixin selector official aLaht;a(Lafm;IIILjava/util/Random;)Vintermediary method_436Lnet/minecraft/class_197;method_436(Lnet/minecraft/class_1150;IIILjava/util/Random;)Vnamed onTickLnet/minecraft/block/Block;onTick(Lnet/minecraft/world/World;IIILjava/util/Random;)V
-
getWeakRedstonePower
- Overrides:
getWeakRedstonePowerin classBlock- Mappings:
Namespace Name Mixin selector official bLaht;b(Lafw;IIII)Iintermediary method_426Lnet/minecraft/class_197;method_426(Lnet/minecraft/class_1158;IIII)Inamed getWeakRedstonePowerLnet/minecraft/block/Block;getWeakRedstonePower(Lnet/minecraft/world/BlockView;IIII)I
-
getStrongRedstonePower
- Overrides:
getStrongRedstonePowerin classBlock- Mappings:
Namespace Name Mixin selector official cLaht;c(Lafw;IIII)Iintermediary method_444Lnet/minecraft/class_197;method_444(Lnet/minecraft/class_1158;IIII)Inamed getStrongRedstonePowerLnet/minecraft/block/Block;getStrongRedstonePower(Lnet/minecraft/world/BlockView;IIII)I
-
method_295
- Mappings:
Namespace Name Mixin selector official aLait;a(Lafm;IIII)Vintermediary method_295Lnet/minecraft/class_124;method_295(Lnet/minecraft/class_1150;IIII)Vnamed method_295Lnet/minecraft/block/DetectorRailBlock;method_295(Lnet/minecraft/world/World;IIII)V
-
breakNaturally
- Overrides:
breakNaturallyin classAbstractRailBlock- Mappings:
Namespace Name Mixin selector official bLaht;b(Lafm;III)Vintermediary method_460Lnet/minecraft/class_197;method_460(Lnet/minecraft/class_1150;III)Vnamed breakNaturallyLnet/minecraft/block/Block;breakNaturally(Lnet/minecraft/world/World;III)V
-
hasComparatorOutput
public boolean hasComparatorOutput()Returns whether the block provides comparator output. Used in blocks with entities like Chests and Droppers.- Overrides:
hasComparatorOutputin classBlock- Returns:
- Whether the block provides comparator output
- Mappings:
Namespace Name Mixin selector official MLaht;M()Zintermediary method_4797Lnet/minecraft/class_197;method_4797()Znamed hasComparatorOutputLnet/minecraft/block/Block;hasComparatorOutput()Z
-
method_4793
- Overrides:
method_4793in classBlock- Mappings:
Namespace Name Mixin selector official gLaht;g(Lafm;IIII)Iintermediary method_4793Lnet/minecraft/class_197;method_4793(Lnet/minecraft/class_1150;IIII)Inamed method_4793Lnet/minecraft/block/Block;method_4793(Lnet/minecraft/world/World;IIII)I
-
registerTextures
- Overrides:
registerTexturesin classBlock- Mappings:
Namespace Name Mixin selector official aLaht;a(Lps;)Vintermediary method_4791Lnet/minecraft/class_197;method_4791(Lnet/minecraft/class_1558;)Vnamed registerTexturesLnet/minecraft/block/Block;registerTextures(Lnet/minecraft/client/TextureRegistry;)V
-
getTexture
- Overrides:
getTexturein classBlock- Mappings:
Namespace Name Mixin selector official aLaht;a(II)Lpr;intermediary method_395Lnet/minecraft/class_197;method_395(II)Lnet/minecraft/class_1557;named getTextureLnet/minecraft/block/Block;getTexture(II)Lnet/minecraft/client/Texture;
-