Class FallingBlock

java.lang.Object
net.minecraft.block.Block
net.minecraft.block.FallingBlock
Direct Known Subclasses:
AnvilBlock, GravelBlock, SandBlock

public class FallingBlock extends Block
Mappings:
Namespace Name
official avt
intermediary net/minecraft/class_1756
named net/minecraft/block/FallingBlock
  • Field Details

    • field_7453

      public static boolean field_7453
      Mappings:
      Namespace Name Mixin selector
      official M Lavt;M:Z
      intermediary field_7453 Lnet/minecraft/class_1756;field_7453:Z
      named field_7453 Lnet/minecraft/block/FallingBlock;field_7453:Z
  • Constructor Details

    • FallingBlock

      public FallingBlock()
    • FallingBlock

      public FallingBlock(Material material)
      Parameters:
      material - The block's material
      Mappings:
      Namespace Name Mixin selector
      official <init> Latr;<init>(Lbof;)V
      intermediary <init> Lnet/minecraft/class_197;<init>(Lnet/minecraft/class_63;)V
      named <init> Lnet/minecraft/block/Block;<init>(Lnet/minecraft/block/Material;)V
  • Method Details

    • onCreation

      public void onCreation(World world, BlockPos pos, BlockState state)
      Runs when the block is placed (by a player or enderman).
      Overrides:
      onCreation in class Block
      Parameters:
      world - The world that the block is placed in
      pos - The block's position
      state - The block's BlockState
      Mappings:
      Namespace Name Mixin selector
      official c Latr;c(Laqu;Ldt;Lbec;)V
      intermediary method_8668 Lnet/minecraft/class_197;method_8668(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)V
      named onCreation Lnet/minecraft/block/Block;onCreation(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
    • neighborUpdate

      public void neighborUpdate(World world, BlockPos pos, BlockState state, Block block)
      Runs when its adjacent blocks are updated. It will also run when the block is placed or removed as Air is being updated.
      Overrides:
      neighborUpdate in class Block
      Parameters:
      world - The world that the block is placed in
      pos - The block's position
      state - The block's BlockState
      block - The adjacent Block that updated the current block
      Mappings:
      Namespace Name Mixin selector
      official a Latr;a(Laqu;Ldt;Lbec;Latr;)V
      intermediary method_8641 Lnet/minecraft/class_197;method_8641(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Lnet/minecraft/class_197;)V
      named neighborUpdate Lnet/minecraft/block/Block;neighborUpdate(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/Block;)V
    • scheduledTick

      public void scheduledTick(World world, BlockPos pos, BlockState state, Random rand)
      Runs when the block is updated as per a schedule
      Overrides:
      scheduledTick in class Block
      Parameters:
      world - The world that the block is placed in
      pos - The block's position
      state - The block's BlockState
      rand - Random object
      Mappings:
      Namespace Name Mixin selector
      official b Latr;b(Laqu;Ldt;Lbec;Ljava/util/Random;)V
      intermediary method_8661 Lnet/minecraft/class_197;method_8661(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Ljava/util/Random;)V
      named scheduledTick Lnet/minecraft/block/Block;scheduledTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Ljava/util/Random;)V
    • method_8768

      private void method_8768(World world, BlockPos blockPos)
      Mappings:
      Namespace Name Mixin selector
      official e Lavt;e(Laqu;Ldt;)V
      intermediary method_8768 Lnet/minecraft/class_1756;method_8768(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)V
      named method_8768 Lnet/minecraft/block/FallingBlock;method_8768(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
    • method_6481

      protected void method_6481(FallingBlockEntity fallingBlockEntity)
      Mappings:
      Namespace Name Mixin selector
      official a Lavt;a(Ladv;)V
      intermediary method_6481 Lnet/minecraft/class_1756;method_6481(Lnet/minecraft/class_963;)V
      named method_6481 Lnet/minecraft/block/FallingBlock;method_6481(Lnet/minecraft/entity/FallingBlockEntity;)V
    • getTickRate

      public int getTickRate(World world)
      Returns the block's tick rate. Default is 10.
      Overrides:
      getTickRate in class Block
      Parameters:
      world - The world that the block is placed in
      Returns:
      Tick rate
      Mappings:
      Namespace Name Mixin selector
      official a Latr;a(Laqu;)I
      intermediary method_4789 Lnet/minecraft/class_197;method_4789(Lnet/minecraft/class_1150;)I
      named getTickRate Lnet/minecraft/block/Block;getTickRate(Lnet/minecraft/world/World;)I
    • method_8767

      public static boolean method_8767(World world, BlockPos blockPos)
      Mappings:
      Namespace Name Mixin selector
      official d Lavt;d(Laqu;Ldt;)Z
      intermediary method_8767 Lnet/minecraft/class_1756;method_8767(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Z
      named method_8767 Lnet/minecraft/block/FallingBlock;method_8767(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
    • onDestroyedOnLanding

      public void onDestroyedOnLanding(World world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a_ Lavt;a_(Laqu;Ldt;)V
      intermediary method_8766 Lnet/minecraft/class_1756;method_8766(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)V
      named onDestroyedOnLanding Lnet/minecraft/block/FallingBlock;onDestroyedOnLanding(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V