java.lang.Object
com.blamejared.crafttweaker.natives.block.type.falling.ExpandFallable

@ZenRegister public class ExpandFallable extends Object
DocParam:
this (invalid input: '<'block:minecraft:sand> as Fallable)
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.world.damagesource.DamageSource
    getFallDamageSource(net.minecraft.world.level.block.Fallable internal, net.minecraft.world.entity.Entity entity)
    Gets the damage source used when this block falls on an entity.
    static void
    onBrokenAfterFall(net.minecraft.world.level.block.Fallable internal, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.item.FallingBlockEntity fallingEntity)
    Called when a falling block breaks after falling.
    static void
    onLand(net.minecraft.world.level.block.Fallable internal, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState fallingState, net.minecraft.world.level.block.state.BlockState placeState, net.minecraft.world.entity.item.FallingBlockEntity fallingEntity)
    Called when a falling block lands on a block.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ExpandFallable

      public ExpandFallable()
  • Method Details

    • onLand

      public static void onLand(net.minecraft.world.level.block.Fallable internal, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState fallingState, net.minecraft.world.level.block.state.BlockState placeState, net.minecraft.world.entity.item.FallingBlockEntity fallingEntity)
      Called when a falling block lands on a block.
      Parameters:
      level - The level the block is falling in.
      pos - The position of the block that is falling.
      fallingState - The state of the block that is falling.
      placeState - The state of the block that the falling block is landing on.
      fallingEntity - The entity that is falling.
    • onBrokenAfterFall

      public static void onBrokenAfterFall(net.minecraft.world.level.block.Fallable internal, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.item.FallingBlockEntity fallingEntity)
      Called when a falling block breaks after falling.
      Parameters:
      level - The level the block is falling in.
      pos - The position of the block that is falling.
      fallingEntity - The entity that is falling.
    • getFallDamageSource

      public static net.minecraft.world.damagesource.DamageSource getFallDamageSource(net.minecraft.world.level.block.Fallable internal, net.minecraft.world.entity.Entity entity)
      Gets the damage source used when this block falls on an entity.
      Returns:
      The damage source used when this block falls on an entity.