Class ExpandFallable
java.lang.Object
com.blamejared.crafttweaker.natives.block.type.falling.ExpandFallable
- DocParam:
- this (invalid input: '<'block:minecraft:sand> as Fallable)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.world.damagesource.DamageSourcegetFallDamageSource(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 voidonBrokenAfterFall(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 voidonLand(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.
-
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.
-