Class ExpandFallingBlock

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

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    static boolean
    isFree(net.minecraft.world.level.block.state.BlockState state)
    Checks if the given blockstate stops a block from falling through it.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.