Class ExpandFallingBlock
java.lang.Object
com.blamejared.crafttweaker.natives.block.type.falling.ExpandFallingBlock
- DocParam:
- this (invalid input: '<'block:minecraft:sand> as FallingBlock)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intgetDustColor(net.minecraft.world.level.block.FallingBlock internal, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos) Gets the dust color of the falling block.static booleanisFree(net.minecraft.world.level.block.state.BlockState state) Checks if the given blockstate stops a block from falling through it.
-
Constructor Details
-
ExpandFallingBlock
public ExpandFallingBlock()
-
-
Method Details
-
isFree
public static boolean isFree(net.minecraft.world.level.block.state.BlockState state) Checks if the given blockstate stops a block from falling through it.- Parameters:
state- The state the check.- Returns:
- True if the blockstate can be fallen through, false otherwise.
- DocParam:
- state invalid input: '<'blockstate:minecraft:dirt>
-
getDustColor
public static int getDustColor(net.minecraft.world.level.block.FallingBlock internal, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos) Gets the dust color of the falling block.- Parameters:
state- The state of the block.level- The level the block is falling in.pos- The position of the block.- Returns:
- The dust color of the falling block.
-