Class BlockHelper

java.lang.Object
fr.alasdiablo.diolib.api.block.BlockHelper

public class BlockHelper extends Object
  • Field Details

  • Constructor Details

    • BlockHelper

      public BlockHelper()
  • Method Details

    • setFlammability

      public static net.minecraft.world.level.block.Block setFlammability(@NotNull @NotNull net.minecraft.world.level.block.Block block, int encouragement, int flammability)
      Helper use to set custom encouragement and flammability to a block
      Parameters:
      block - Target block
      encouragement - New encouragement
      flammability - New flammability
      Returns:
      Target block
    • createStrippablesBlock

      @Deprecated public static void createStrippablesBlock(@NotNull @NotNull net.minecraft.world.level.block.Block source, @NotNull @NotNull net.minecraft.world.level.block.Block target)
      Deprecated.
      Helper use to add a block to the strippables block create via an axe
      Parameters:
      source - Source block (block who gets the strip action)
      target - Result block
    • redStoneOreParticles

      @Deprecated public static void redStoneOreParticles(@NotNull @NotNull net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.core.BlockPos pos)
      Deprecated.
      Helper use to spawn redstone particles
      Parameters:
      level - The current level
      pos - The spawn position of the particles