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 anjintermediary net/minecraft/class_1756named net/minecraft/block/FallingBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.OffsetType -
Field Summary
FieldsFields inherited from class net.minecraft.block.Block
blastResistance, BLOCK_STATES, blockEntity, blockSoundGroup, collisionBox, EMPTY_BOX, fullBlock, hardness, lightLevel, material, materialColor, opacity, particleGravity, randomTicks, REGISTRY, slipperiness, stateManager, stats, transluscent, useNeighbourLight -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetTickRate(World world) Returns the block's tick rate.static booleanmethod_11611(BlockState blockState) intmethod_13316(BlockState blockState) voidmethod_13705(World world, BlockPos blockPos) protected voidmethod_6481(FallingBlockEntity fallingBlockEntity) voidmethod_8669(BlockState blockState, World world, BlockPos blockPos, Random random) private voidmethod_8768(World world, BlockPos blockPos) voidvoidonCreation(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, appendCollisionBoxes, appendProperties, areBlocksEqual, blocksMovement, canBePlacedAdjacent, canBePlacedAtPos, canCollide, canMobSpawnInside, createStackFromBlock, disableStats, dropAsItem, dropExperience, get, getBlastResistance, getBlockFromItem, getBlockRenderType, getBlockState, getBonusDrops, getByBlockState, getById, getCollisionBox, getComparatorOutput, getData, getDefaultState, getDropCount, getDropItem, getHardness, getIdByBlock, getItemGroup, getLuminance, getMaterial, getMaterialColor, getMeta, getOffsetType, getOpacity, getPistonBehavior, getRenderLayerType, getSoundGroup, getStateFromData, getStateFromRawId, getStateManager, getTranslatedName, getTranslationKey, hasBlockEntity, hasCollision, hasCollision, hasStats, isEqualTo, isFire, isFullBlock, isFullBoundsCubeForCulling, isTransluscent, method_11557, method_11559, method_11562, method_11563, method_11564, method_11565, method_11566, method_11568, method_11575, method_11576, method_11577, method_13315, method_13700, method_13701, method_13702, method_13703, method_13704, method_414, method_435, method_8638, method_8640, method_8640, method_8651, method_8653, method_8654, method_8664, onBlockBreak, onBlockBreakStart, onBreakByPlayer, onBreakByPlayer, onBreaking, onDestroyedByExplosion, onEntityCollision, onEntityCollision, onLandedUpon, onPlaced, onSteppedOn, onUpdateTick, rainTick, randomDropAsItem, requiresSilkTouch, setBlockSoundGroup, setDefaultState, setEntityVelocity, setItemGroup, setLightLevel, setOpacity, setResistance, setStrength, setTickRandomly, setTranslationKey, setUnbreakable, setup, shouldDropItemsOnExplosion, stateFromData, ticksRandomly, toString, use, useNeighbourLight, withMirror, withRotation
-
Field Details
-
field_7453
public static boolean field_7453- Mappings:
Namespace Name Mixin selector official fLanj;f: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>Lalu;<init>(Lazs;)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 cLalu;c(Lajs;Lco;Latl;)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
-
onBreak
- Overrides:
onBreakin classBlock- Mappings:
Namespace Name Mixin selector official aLalu;a(Latl;Lajs;Lco;Lalu;Lco;)Vintermediary method_8641Lnet/minecraft/class_197;method_8641(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_197;Lnet/minecraft/class_2552;)Vnamed onBreakLnet/minecraft/block/Block;onBreak(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/Block;Lnet/minecraft/util/math/BlockPos;)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 bLalu;b(Lajs;Lco;Latl;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 cLanj;c(Lajs;Lco;)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 aLanj;a(Lzi;)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 aLalu;a(Lajs;)Iintermediary method_4789Lnet/minecraft/class_197;method_4789(Lnet/minecraft/class_1150;)Inamed getTickRateLnet/minecraft/block/Block;getTickRate(Lnet/minecraft/world/World;)I
-
method_11611
- Mappings:
Namespace Name Mixin selector official iLanj;i(Latl;)Zintermediary method_11611Lnet/minecraft/class_1756;method_11611(Lnet/minecraft/class_2232;)Znamed method_11611Lnet/minecraft/block/FallingBlock;method_11611(Lnet/minecraft/block/BlockState;)Z
-
onDestroyedOnLanding
- Mappings:
Namespace Name Mixin selector official a_Lanj;a_(Lajs;Lco;)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
-
method_13705
- Mappings:
Namespace Name Mixin selector official bLanj;b(Lajs;Lco;)Vintermediary method_13705Lnet/minecraft/class_1756;method_13705(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Vnamed method_13705Lnet/minecraft/block/FallingBlock;method_13705(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
-
method_8669
@Environment(CLIENT) public void method_8669(BlockState blockState, World world, BlockPos blockPos, Random random) - Overrides:
method_8669in classBlock- Mappings:
Namespace Name Mixin selector official aLalu;a(Latl;Lajs;Lco;Ljava/util/Random;)Vintermediary method_8669Lnet/minecraft/class_197;method_8669(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Ljava/util/Random;)Vnamed method_8669Lnet/minecraft/block/Block;method_8669(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)V
-
method_13316
- Mappings:
Namespace Name Mixin selector official zLanj;z(Latl;)Iintermediary method_13316Lnet/minecraft/class_1756;method_13316(Lnet/minecraft/class_2232;)Inamed method_13316Lnet/minecraft/block/FallingBlock;method_13316(Lnet/minecraft/block/BlockState;)I
-