Class ExpandFallingBlock
java.lang.Object
com.blamejared.crafttweaker.natives.block.type.falling.ExpandFallingBlock
- DocParam:
- this (<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) 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 <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)
-