Package net.minecraft.block
Class DetectorRailBlock
java.lang.Object
net.minecraft.block.Block
net.minecraft.block.RailBlock
net.minecraft.block.DetectorRailBlock
- Mappings:
Namespace Name intermediary net/minecraft/class_342glue class_365server jnclient phnamed net/minecraft/block/DetectorRailBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.RailBlock
RailBlock.class_338 -
Field Summary
Fields inherited from class net.minecraft.block.Block
BED, BEDROCK, BLOCKS, BLOCKS_ALLOW_VISION, BLOCKS_IGNORE_META_UPDATE, BLOCKS_LIGHT_LUMINANCE, BLOCKS_LIGHT_OPACITY, BLOCKS_OPAQUE, BLOCKS_RANDOM_TICK, BLOCKS_WITH_ENTITY, BOOKSHELF, BRICKS, BROWN_MUSHROOM, BUTTON, CACTUS, CAKE, CHEST, CLAY, COAL_ORE, COBBLESTONE, COBBLESTONE_STAIRS, COBWEB, constructed, CRAFTING_TABLE, DANDELION, DEAD_BUSH, DEFAULT_SOUND_GROUP, DETECTOR_RAIL, DIAMOND_BLOCK, DIAMOND_ORE, DIRT, DIRT_SOUND_GROUP, DISPENSER, DOOR, DOUBLE_SLAB, FARMLAND, FENCE, FIRE, FLOWING_LAVA, FLOWING_WATER, FURNACE, GLASS, GLASS_SOUND_GROUP, GLOWSTONE, GOLD_BLOCK, GOLD_ORE, GRASS, GRASS_BLOCK, GRAVEL, GRAVEL_SOUND_GROUP, hardness, ICE, id, IRON_BLOCK, IRON_DOOR, IRON_ORE, JACK_O_LANTERN, JUKEBOX, LADDER, LAPIS_BLOCK, LAPIS_ORE, LAVA, LEAVES, LEVER, LIT_FURNACE, LIT_REDSTONE_ORE, LIT_REDSTONE_TORCH, LOCKED_CHEST, LOG, material, maxX, maxY, maxZ, METAL_SOUND_GROUP, minX, minY, minZ, MOSSY_COBBLESTONE, MOVING_PISTON, NETHER_PORTAL, NETHERRACK, NOTE_BLOCK, OBSIDIAN, particleFallSpeedModifier, PISTON, PISTON_HEAD, PLANKS, POWERED_RAIL, POWERED_REPEATER, PUMPKIN, RAIL, RED_MUSHROOM, REDSTONE_ORE, REDSTONE_TORCH, REDSTONE_WIRE, REPEATER, resistance, ROSE, SAND, SAND_SOUND_GROUP, SANDSTONE, SAPLING, shouldTrackStatistics, SIGN, SLAB, slipperiness, SNOW, SNOW_BLOCK, SOUL_SAND, soundGroup, SPAWNER, SPONGE, STICKY_PISTON, STONE, STONE_PRESSURE_PLATE, STONE_SOUND_GROUP, SUGAR_CANE, textureId, TNT, TORCH, TRAPDOOR, WALL_SIGN, WATER, WHEAT, WOOD_SOUND_GROUP, WOODEN_PRESSURE_PLATE, WOODEN_STAIRS, WOOL, WOOL_SOUND_GROUP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleancanTransferPowerInDirection(World world, int x, int y, int z, int direction) intbooleanisEmittingRedstonePowerInDirection(BlockView blockView, int x, int y, int z, int direction) voidonEntityCollision(World world, int x, int y, int z, Entity entity) voidCalled at a frequency based on the return value ofBlock.getTickRate().private voidupdatePoweredStatus(World world, int x, int y, int z, int meta) Methods inherited from class net.minecraft.block.RailBlock
canPlaceAt, getCollisionShape, getDroppedItemCount, getPistonBehavior, getRenderType, getTexture, isFullCube, isOpaque, method_1107, method_1108, method_1109, neighborUpdate, onPlaced, raycast, updateBoundingBoxMethods inherited from class net.minecraft.block.Block
addIntersectingBoundingBox, afterBreak, applyVelocity, canGrow, canPlaceAt, disableTrackingStatistics, dropStack, dropStacks, dropStacks, getBlastResistance, getBoundingBox, getColor, getColorMultiplier, getDroppedItemId, getDroppedItemMeta, getHardness, getHardness, getLuminance, getRenderLayer, getTexture, getTextureId, getTranslatedName, getTranslationKey, hasCollision, hasCollision, ignoreMetaUpdates, init, isSideVisible, isSolidBlock, isTrackingStatistics, onBlockAction, onBlockBreakStart, onBreak, onDestroyedByExplosion, onMetadataChange, onPlaced, onPlaced, onSteppedOn, onUse, randomDisplayTick, setBoundingBox, setHardness, setLuminance, setOpacity, setResistance, setSoundGroup, setTickRandomly, setTranslationKey, setUnbreakable, setupRenderBoundingBox
-
Constructor Details
-
DetectorRailBlock
public DetectorRailBlock(int id, int textureId) - Mappings:
Namespace Name Mixin selector intermediary <init>Lnet/minecraft/class_342;<init>(II)Vglue <init>Lclass_365;<init>(II)Vserver <init>Ljn;<init>(II)Vclient <init>Lph;<init>(II)Vnamed <init>Lnet/minecraft/block/DetectorRailBlock;<init>(II)V
-
-
Method Details
-
getTickRate
public int getTickRate()- Overrides:
getTickRatein classBlock- Mappings:
Namespace Name Mixin selector intermediary method_1565Lnet/minecraft/class_17;method_1565()Iglue method_123Lclass_507;method_123()Iserver cLna;c()Iclient eLuu;e()Inamed getTickRateLnet/minecraft/block/Block;getTickRate()I
-
canEmitRedstonePower
public boolean canEmitRedstonePower()- Overrides:
canEmitRedstonePowerin classBlock- Mappings:
Namespace Name Mixin selector intermediary method_1569Lnet/minecraft/class_17;method_1569()Zglue method_155Lclass_507;method_155()Zserver dLna;d()Zclient fLuu;f()Znamed canEmitRedstonePowerLnet/minecraft/block/Block;canEmitRedstonePower()Z
-
onEntityCollision
- Overrides:
onEntityCollisionin classBlock- Mappings:
Namespace Name Mixin selector intermediary method_1615Lnet/minecraft/class_17;method_1615(Lnet/minecraft/class_18;IIILnet/minecraft/class_57;)Vglue method_59Lclass_507;method_59(Lclass_129;IIILclass_450;)Vserver aLna;a(Ldj;IIILlq;)Vclient aLuu;a(Lfd;IIILsn;)Vnamed onEntityCollisionLnet/minecraft/block/Block;onEntityCollision(Lnet/minecraft/world/World;IIILnet/minecraft/entity/Entity;)V
-
onTick
Called at a frequency based on the return value ofBlock.getTickRate(). This method will be called approximatelyBlock.getTickRate()times per second.- Overrides:
onTickin classBlock- Mappings:
Namespace Name Mixin selector intermediary method_1602Lnet/minecraft/class_17;method_1602(Lnet/minecraft/class_18;IIILjava/util/Random;)Vglue method_20Lclass_507;method_20(Lclass_129;IIILjava/util/Random;)Vserver aLna;a(Ldj;IIILjava/util/Random;)Vclient aLuu;a(Lfd;IIILjava/util/Random;)Vnamed onTickLnet/minecraft/block/Block;onTick(Lnet/minecraft/world/World;IIILjava/util/Random;)V
-
isEmittingRedstonePowerInDirection
public boolean isEmittingRedstonePowerInDirection(BlockView blockView, int x, int y, int z, int direction) - Overrides:
isEmittingRedstonePowerInDirectionin classBlock- Mappings:
Namespace Name Mixin selector intermediary method_1568Lnet/minecraft/class_17;method_1568(Lnet/minecraft/class_14;IIII)Zglue method_154Lclass_507;method_154(Lclass_584;IIII)Zserver aLna;a(Lpb;IIII)Zclient cLuu;c(Lxp;IIII)Znamed isEmittingRedstonePowerInDirectionLnet/minecraft/block/Block;isEmittingRedstonePowerInDirection(Lnet/minecraft/world/BlockView;IIII)Z
-
canTransferPowerInDirection
- Overrides:
canTransferPowerInDirectionin classBlock- Mappings:
Namespace Name Mixin selector intermediary method_1570Lnet/minecraft/class_17;method_1570(Lnet/minecraft/class_18;IIII)Zglue method_156Lclass_507;method_156(Lclass_129;IIII)Zserver dLna;d(Ldj;IIII)Zclient dLuu;d(Lfd;IIII)Znamed canTransferPowerInDirectionLnet/minecraft/block/Block;canTransferPowerInDirection(Lnet/minecraft/world/World;IIII)Z
-
updatePoweredStatus
- Mappings:
Namespace Name Mixin selector intermediary method_1144Lnet/minecraft/class_342;method_1144(Lnet/minecraft/class_18;IIII)Vglue method_1489Lclass_365;method_1489(Lclass_129;IIII)Vserver fLjn;f(Ldj;IIII)Vclient fLph;f(Lfd;IIII)Vnamed updatePoweredStatusLnet/minecraft/block/DetectorRailBlock;updatePoweredStatus(Lnet/minecraft/world/World;IIII)V
-