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 agr
intermediary net/minecraft/class_206
named net/minecraft/block/FallingBlock
  • Field Details

    • field_901

      public static boolean field_901
      Mappings:
      Namespace Name Mixin selector
      official N Lagr;N:Z
      intermediary field_901 Lnet/minecraft/class_206;field_901:Z
      named field_901 Lnet/minecraft/block/FallingBlock;field_901:Z
  • Constructor Details

    • FallingBlock

      public FallingBlock()
    • FallingBlock

      public FallingBlock​(Material material)
      Parameters:
      material - The block's material
      Mappings:
      Namespace Name Mixin selector
      official <init> Lafh;<init>(Larm;)V
      intermediary <init> Lnet/minecraft/class_160;<init>(Lnet/minecraft/class_591;)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 Lafh;c(Ladm;Lcj;Lalz;)V
      intermediary method_703 Lnet/minecraft/class_160;method_703(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;)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 Lafh;a(Ladm;Lcj;Lalz;Lafh;)V
      intermediary method_648 Lnet/minecraft/class_160;method_648(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;Lnet/minecraft/class_160;)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 Lafh;b(Ladm;Lcj;Lalz;Ljava/util/Random;)V
      intermediary method_690 Lnet/minecraft/class_160;method_690(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;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_845

      private void method_845​(World world, BlockPos blockPos)
      Mappings:
      Namespace Name Mixin selector
      official f Lagr;f(Ladm;Lcj;)V
      intermediary method_845 Lnet/minecraft/class_206;method_845(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;)V
      named method_845 Lnet/minecraft/block/FallingBlock;method_845(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
    • method_842

      protected void method_842​(FallingBlockEntity fallingBlockEntity)
      Mappings:
      Namespace Name Mixin selector
      official a Lagr;a(Luy;)V
      intermediary method_842 Lnet/minecraft/class_206;method_842(Lnet/minecraft/class_1892;)V
      named method_842 Lnet/minecraft/block/FallingBlock;method_842(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 Lafh;a(Ladm;)I
      intermediary method_642 Lnet/minecraft/class_160;method_642(Lnet/minecraft/class_99;)I
      named getTickRate Lnet/minecraft/block/Block;getTickRate(Lnet/minecraft/world/World;)I
    • method_844

      public static boolean method_844​(World world, BlockPos blockPos)
      Mappings:
      Namespace Name Mixin selector
      official e Lagr;e(Ladm;Lcj;)Z
      intermediary method_844 Lnet/minecraft/class_206;method_844(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;)Z
      named method_844 Lnet/minecraft/block/FallingBlock;method_844(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_ Lagr;a_(Ladm;Lcj;)V
      intermediary method_843 Lnet/minecraft/class_206;method_843(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;)V
      named onDestroyedOnLanding Lnet/minecraft/block/FallingBlock;onDestroyedOnLanding(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V