Package net.minecraft.block
Class AbstractRailBlock
java.lang.Object
net.minecraft.block.Block
net.minecraft.block.AbstractRailBlock
- Direct Known Subclasses:
DetectorRailBlock,PoweredRailBlock,RailBlock
- Mappings:
Namespace Name official ahpintermediary net/minecraft/class_1446named net/minecraft/block/AbstractRailBlock
-
Field Summary
FieldsFields 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) booleancanPlaceBlockAt(World world, int x, int y, int z) intintgetDropCount(Random rand) Returns the amount of items the block should drop on breaking without bonus rolls.intReturns the block's piston interaction type, as provided by it's material.booleanvoidmethod_411(World world, int int2, int int3, int int4, Block block, int int5) method_414(World world, int int2, int int3, int int4, Vec3d vec3d, Vec3d vec3d2) voidmethod_425(BlockView blockView, int int2, int int3, int int4) method_454(World world, int int2, int int3, int int4) protected voidmethod_4737(World world, int int2, int int3, int int4, int int5, int int6, Block block) protected voidmethod_4738(World world, int int2, int int3, int int4, boolean bool) static final booleanmethod_4740(World world, int int2, int int3, int int4) booleanstatic final booleanmethod_6439(Block block) voidonNeighborUpdate(World world, int x, int y, int z, Block block) booleanReturns whether the block can be rendered as a normal blockMethods inherited from class net.minecraft.block.Block
appendItemStacks, areBlocksEqual, canStayPlaced, canStayPlaced, disableStats, emitsRedstonePower, get, getAmbientOcclusionLightLevel, getBlastResistance, getBlockFromItem, getBonusDrops, getById, getColor, getIdByBlock, getItemGroup, getLightLevel, getMaterial, getMaxX, getMaxY, getMaxZ, getMinX, getMinY, getMinZ, getOpacity, getSideTexture, getStrongRedstonePower, getTexture, getTextureName, getTickRate, getTranslatedName, getTranslationKey, getWeakRedstonePower, hasBlockEntity, hasCollision, hasComparatorOutput, 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_4793, method_4794, method_4798, method_5546, method_6444, method_6449, onActivated, onBreak, onDestroyed, onEntityCollision, onTick, registerTextures, requiresSilkTouch, setBlockItemBounds, setBlockSoundGroup, setBoundingBox, setItemGroup, setLightLevel, setOpacity, setResistance, setStrength, setTickRandomly, setTranslationKey, setUnbreakable, setup, shouldDropItemsOnExplosion, shouldRenderSide, ticksRandomly, usesNeighbourLight
-
Field Details
-
allowCurves
protected final boolean allowCurves- Mappings:
Namespace Name Mixin selector official aLahp;a:Zintermediary field_5516Lnet/minecraft/class_1446;field_5516:Znamed allowCurvesLnet/minecraft/block/AbstractRailBlock;allowCurves:Z
-
-
Constructor Details
-
AbstractRailBlock
protected AbstractRailBlock(boolean allowCurves) - Mappings:
Namespace Name Mixin selector official <init>Lahp;<init>(Z)Vintermediary <init>Lnet/minecraft/class_1446;<init>(Z)Vnamed <init>Lnet/minecraft/block/AbstractRailBlock;<init>(Z)V
-
-
Method Details
-
method_4740
- Mappings:
Namespace Name Mixin selector official b_Lahp;b_(Lafm;III)Zintermediary method_4740Lnet/minecraft/class_1446;method_4740(Lnet/minecraft/class_1150;III)Znamed method_4740Lnet/minecraft/block/AbstractRailBlock;method_4740(Lnet/minecraft/world/World;III)Z
-
method_6439
- Mappings:
Namespace Name Mixin selector official aLahp;a(Laht;)Zintermediary method_6439Lnet/minecraft/class_1446;method_6439(Lnet/minecraft/class_197;)Znamed method_6439Lnet/minecraft/block/AbstractRailBlock;method_6439(Lnet/minecraft/block/Block;)Z
-
method_4741
public boolean method_4741()- Mappings:
Namespace Name Mixin selector official eLahp;e()Zintermediary method_4741Lnet/minecraft/class_1446;method_4741()Znamed method_4741Lnet/minecraft/block/AbstractRailBlock;method_4741()Z
-
method_454
- Overrides:
method_454in classBlock- Mappings:
Namespace Name Mixin selector official aLaht;a(Lafm;III)Laye;intermediary method_454Lnet/minecraft/class_197;method_454(Lnet/minecraft/class_1150;III)Lnet/minecraft/class_231;named method_454Lnet/minecraft/block/Block;method_454(Lnet/minecraft/world/World;III)Lnet/minecraft/util/math/Box;
-
hasTransperancy
public boolean hasTransperancy()- Overrides:
hasTransperancyin classBlock- Mappings:
Namespace Name Mixin selector official cLaht;c()Zintermediary method_449Lnet/minecraft/class_197;method_449()Znamed hasTransperancyLnet/minecraft/block/Block;hasTransperancy()Z
-
method_414
public BlockHitResult method_414(World world, int int2, int int3, int int4, Vec3d vec3d, Vec3d vec3d2) - Overrides:
method_414in classBlock- Mappings:
Namespace Name Mixin selector official aLaht;a(Lafm;IIILayj;Layj;)Layh;intermediary method_414Lnet/minecraft/class_197;method_414(Lnet/minecraft/class_1150;IIILnet/minecraft/class_236;Lnet/minecraft/class_236;)Lnet/minecraft/class_234;named method_414Lnet/minecraft/block/Block;method_414(Lnet/minecraft/world/World;IIILnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/util/hit/BlockHitResult;
-
method_425
- Overrides:
method_425in classBlock- Mappings:
Namespace Name Mixin selector official aLaht;a(Lafw;III)Vintermediary method_425Lnet/minecraft/class_197;method_425(Lnet/minecraft/class_1158;III)Vnamed method_425Lnet/minecraft/block/Block;method_425(Lnet/minecraft/world/BlockView;III)V
-
renderAsNormalBlock
public boolean renderAsNormalBlock()Returns whether the block can be rendered as a normal block- Overrides:
renderAsNormalBlockin classBlock- Returns:
- Whether the block can be rendered as a normal block
- Mappings:
Namespace Name Mixin selector official dLaht;d()Zintermediary method_441Lnet/minecraft/class_197;method_441()Znamed renderAsNormalBlockLnet/minecraft/block/Block;renderAsNormalBlock()Z
-
getBlockType
public int getBlockType()- Overrides:
getBlockTypein classBlock- Mappings:
Namespace Name Mixin selector official bLaht;b()Iintermediary method_429Lnet/minecraft/class_197;method_429()Inamed getBlockTypeLnet/minecraft/block/Block;getBlockType()I
-
getDropCount
Returns the amount of items the block should drop on breaking without bonus rolls.- Overrides:
getDropCountin classBlock- Parameters:
rand- Random object- Returns:
- Amount of items to be dropped
- Mappings:
Namespace Name Mixin selector official aLaht;a(Ljava/util/Random;)Iintermediary method_403Lnet/minecraft/class_197;method_403(Ljava/util/Random;)Inamed getDropCountLnet/minecraft/block/Block;getDropCount(Ljava/util/Random;)I
-
canPlaceBlockAt
- Overrides:
canPlaceBlockAtin classBlock- Mappings:
Namespace Name Mixin selector official cLaht;c(Lafm;III)Zintermediary method_434Lnet/minecraft/class_197;method_434(Lnet/minecraft/class_1150;III)Znamed canPlaceBlockAtLnet/minecraft/block/Block;canPlaceBlockAt(Lnet/minecraft/world/World;III)Z
-
breakNaturally
- Overrides:
breakNaturallyin classBlock- 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
-
onNeighborUpdate
- Overrides:
onNeighborUpdatein classBlock- Mappings:
Namespace Name Mixin selector official aLaht;a(Lafm;IIILaht;)Vintermediary method_408Lnet/minecraft/class_197;method_408(Lnet/minecraft/class_1150;IIILnet/minecraft/class_197;)Vnamed onNeighborUpdateLnet/minecraft/block/Block;onNeighborUpdate(Lnet/minecraft/world/World;IIILnet/minecraft/block/Block;)V
-
method_4737
protected void method_4737(World world, int int2, int int3, int int4, int int5, int int6, Block block) - Mappings:
Namespace Name Mixin selector official aLahp;a(Lafm;IIIIILaht;)Vintermediary method_4737Lnet/minecraft/class_1446;method_4737(Lnet/minecraft/class_1150;IIIIILnet/minecraft/class_197;)Vnamed method_4737Lnet/minecraft/block/AbstractRailBlock;method_4737(Lnet/minecraft/world/World;IIIIILnet/minecraft/block/Block;)V
-
method_4738
- Mappings:
Namespace Name Mixin selector official aLahp;a(Lafm;IIIZ)Vintermediary method_4738Lnet/minecraft/class_1446;method_4738(Lnet/minecraft/class_1150;IIIZ)Vnamed method_4738Lnet/minecraft/block/AbstractRailBlock;method_4738(Lnet/minecraft/world/World;IIIZ)V
-
getPistonInteractionType
public int getPistonInteractionType()Returns the block's piston interaction type, as provided by it's material.- Overrides:
getPistonInteractionTypein classBlock- Returns:
- Current block's piston interaction type
- Mappings:
Namespace Name Mixin selector official hLaht;h()Iintermediary method_453Lnet/minecraft/class_197;method_453()Inamed getPistonInteractionTypeLnet/minecraft/block/Block;getPistonInteractionType()I
-
method_411
- Overrides:
method_411in classBlock- Mappings:
Namespace Name Mixin selector official aLaht;a(Lafm;IIILaht;I)Vintermediary method_411Lnet/minecraft/class_197;method_411(Lnet/minecraft/class_1150;IIILnet/minecraft/class_197;I)Vnamed method_411Lnet/minecraft/block/Block;method_411(Lnet/minecraft/world/World;IIILnet/minecraft/block/Block;I)V
-