Package net.minecraft.block
Class FallingBlock
java.lang.Object
net.minecraft.block.Block
net.minecraft.block.FallingBlock
- Direct Known Subclasses:
AnvilBlock,GravelBlock,SandBlock
- Mappings:
Namespace Name official avtintermediary net/minecraft/class_1756named net/minecraft/block/FallingBlock
-
Field Summary
FieldsFields inherited from class net.minecraft.block.Block
blastResistance, BLOCK_STATES, blockEntity, boundingBoxMaxX, boundingBoxMaxY, boundingBoxMaxZ, boundingBoxMinX, boundingBoxMinY, boundingBoxMinZ, field_483, field_484, field_486, field_487, field_7261, field_7262, field_7263, field_7264, field_7265, field_7266, field_7267, field_7268, field_9285, fullBlock, hardness, lightLevel, material, opacity, particleGravity, randomTicks, REGISTRY, slipperiness, soundGroup, stateManager, stats, transluscent, useNeighbourLight -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetTickRate(World world) Returns the block's tick rate.protected voidmethod_6481(FallingBlockEntity fallingBlockEntity) static booleanmethod_8767(World world, BlockPos blockPos) private voidmethod_8768(World world, BlockPos blockPos) voidneighborUpdate(World world, BlockPos pos, BlockState state, Block block) Runs when its adjacent blocks are updated.voidonCreation(World world, BlockPos pos, BlockState state) Runs when the block is placed (by a player or enderman).voidonDestroyedOnLanding(World world, BlockPos pos) voidscheduledTick(World world, BlockPos pos, BlockState state, Random rand) Runs when the block is updated as per a scheduleMethods inherited from class net.minecraft.block.Block
appendCollisionBoxes, appendItemStacks, appendProperties, areBlocksEqual, blocksMovement, calcBlockBreakingData, canBePlacedAdjacent, canBePlacedAtPos, canBeReplaced, canCollide, createStackFromBlock, disableStats, dropAsItem, dropExperience, emitsRedstonePower, get, getAmbientOcclusionLightLevel, getBlastResistance, getBlendColor, getBlockColor, getBlockFromItem, getBlockState, getBlockType, getBonusDrops, getBrightness, getByBlockState, getById, getCollisionBox, getColor, getColor, getComparatorOutput, getData, getDefaultState, getDropCount, getDropItem, getIdByBlock, getItemGroup, getLightLevel, getMaterial, getMaterialColor, getMaxX, getMaxY, getMaxZ, getMeta, getMeta, getMinX, getMinY, getMinZ, getOpacity, getPickItem, getPistonInteractionType, getRenderLayerType, getSelectionBox, getStateFromData, getStateFromRawId, getStateManager, getStrength, getStrongRedstonePower, getTranslatedName, getTranslationKey, getWeakRedstonePower, harvest, hasBlockEntity, hasCollision, hasCollision, hasComparatorOutput, hasStats, hasTransperancy, isEqualTo, isFire, isFlowerPot, isFullBlock, isFullCube, isLeafBlock, isNormalBlock, isReplaceable, isSideInvisible, isTransluscent, method_414, method_8634, method_8666, onBlockBreak, onBlockBreakStart, onBreakByPlayer, onBreakByPlayer, onBreaking, onDestroyedByExplosion, onEntityCollision, onEntityCollision, onEvent, onLandedUpon, onPlaced, onSteppedOn, onUpdateTick, onUse, rainTick, randomDisplayTick, randomDropAsItem, renderAsNormalBlock, requiresSilkTouch, setBlockItemBounds, setBlockSoundGroup, setBoundingBox, setBoundingBox, setDefaultState, setEntityVelocity, setItemGroup, setLightLevel, setOpacity, setResistance, setStrength, setTickRandomly, setTranslationKey, setUnbreakable, setup, shouldDropItemsOnExplosion, stateFromData, ticksRandomly, usesNeighbourLight
-
Field Details
-
field_7453
public static boolean field_7453- Mappings:
Namespace Name Mixin selector official MLavt;M:Zintermediary field_7453Lnet/minecraft/class_1756;field_7453:Znamed field_7453Lnet/minecraft/block/FallingBlock;field_7453:Z
-
-
Constructor Details
-
FallingBlock
public FallingBlock() -
FallingBlock
- Parameters:
material- The block's material- Mappings:
Namespace Name Mixin selector official <init>Latr;<init>(Lbof;)Vintermediary <init>Lnet/minecraft/class_197;<init>(Lnet/minecraft/class_63;)Vnamed <init>Lnet/minecraft/block/Block;<init>(Lnet/minecraft/block/Material;)V
-
-
Method Details
-
onCreation
Runs when the block is placed (by a player or enderman).- Overrides:
onCreationin classBlock- Parameters:
world- The world that the block is placed inpos- The block's positionstate- The block's BlockState- Mappings:
Namespace Name Mixin selector official cLatr;c(Laqu;Ldt;Lbec;)Vintermediary method_8668Lnet/minecraft/class_197;method_8668(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Vnamed onCreationLnet/minecraft/block/Block;onCreation(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
neighborUpdate
Runs when its adjacent blocks are updated. It will also run when the block is placed or removed as Air is being updated.- Overrides:
neighborUpdatein classBlock- Parameters:
world- The world that the block is placed inpos- The block's positionstate- The block's BlockStateblock- The adjacent Block that updated the current block- Mappings:
Namespace Name Mixin selector official aLatr;a(Laqu;Ldt;Lbec;Latr;)Vintermediary method_8641Lnet/minecraft/class_197;method_8641(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Lnet/minecraft/class_197;)Vnamed neighborUpdateLnet/minecraft/block/Block;neighborUpdate(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/Block;)V
-
scheduledTick
Runs when the block is updated as per a schedule- Overrides:
scheduledTickin classBlock- Parameters:
world- The world that the block is placed inpos- The block's positionstate- The block's BlockStaterand- Random object- Mappings:
Namespace Name Mixin selector official bLatr;b(Laqu;Ldt;Lbec;Ljava/util/Random;)Vintermediary method_8661Lnet/minecraft/class_197;method_8661(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Ljava/util/Random;)Vnamed scheduledTickLnet/minecraft/block/Block;scheduledTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Ljava/util/Random;)V
-
method_8768
- Mappings:
Namespace Name Mixin selector official eLavt;e(Laqu;Ldt;)Vintermediary method_8768Lnet/minecraft/class_1756;method_8768(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Vnamed method_8768Lnet/minecraft/block/FallingBlock;method_8768(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
-
method_6481
- Mappings:
Namespace Name Mixin selector official aLavt;a(Ladv;)Vintermediary method_6481Lnet/minecraft/class_1756;method_6481(Lnet/minecraft/class_963;)Vnamed method_6481Lnet/minecraft/block/FallingBlock;method_6481(Lnet/minecraft/entity/FallingBlockEntity;)V
-
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 aLatr;a(Laqu;)Iintermediary method_4789Lnet/minecraft/class_197;method_4789(Lnet/minecraft/class_1150;)Inamed getTickRateLnet/minecraft/block/Block;getTickRate(Lnet/minecraft/world/World;)I
-
method_8767
- Mappings:
Namespace Name Mixin selector official dLavt;d(Laqu;Ldt;)Zintermediary method_8767Lnet/minecraft/class_1756;method_8767(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Znamed method_8767Lnet/minecraft/block/FallingBlock;method_8767(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
-
onDestroyedOnLanding
- Mappings:
Namespace Name Mixin selector official a_Lavt;a_(Laqu;Ldt;)Vintermediary method_8766Lnet/minecraft/class_1756;method_8766(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Vnamed onDestroyedOnLandingLnet/minecraft/block/FallingBlock;onDestroyedOnLanding(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
-