Class ExpandLevelWriter

java.lang.Object
com.blamejared.crafttweaker.natives.world.ExpandLevelWriter

@ZenRegister public class ExpandLevelWriter extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    addFreshEntity(net.minecraft.world.level.LevelWriter internal, net.minecraft.world.entity.Entity entity)
    add an entity to the world, return if the entity is added successfully.
    static boolean
    destroyBlock(net.minecraft.world.level.LevelWriter internal, net.minecraft.core.BlockPos pos, boolean doDrops)
    Destroys a block within the world.
    static boolean
    destroyBlock(net.minecraft.world.level.LevelWriter internal, net.minecraft.core.BlockPos pos, boolean dropBlock, @Nullable net.minecraft.world.entity.Entity entity, int recursionLeft)
     
    static boolean
    destroyBlock(net.minecraft.world.level.LevelWriter internal, net.minecraft.core.BlockPos pos, boolean doDrops, net.minecraft.world.entity.Entity breaker)
    Destroys a block within the world.
    static boolean
    removeBlock(net.minecraft.world.level.LevelWriter internal, net.minecraft.core.BlockPos pos, boolean isMoving)
     
    static boolean
    setBlock(net.minecraft.world.level.LevelWriter internal, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, int flags)
     
    static boolean
    setBlock(net.minecraft.world.level.LevelWriter internal, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, int flags, int recursionLeft)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ExpandLevelWriter

      public ExpandLevelWriter()
  • Method Details

    • setBlock

      public static boolean setBlock(net.minecraft.world.level.LevelWriter internal, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, int flags, int recursionLeft)
    • setBlock

      public static boolean setBlock(net.minecraft.world.level.LevelWriter internal, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, int flags)
    • removeBlock

      public static boolean removeBlock(net.minecraft.world.level.LevelWriter internal, net.minecraft.core.BlockPos pos, boolean isMoving)
    • destroyBlock

      public static boolean destroyBlock(net.minecraft.world.level.LevelWriter internal, net.minecraft.core.BlockPos pos, boolean doDrops)
      Destroys a block within the world.
      Parameters:
      pos - The position of the block.
      doDrops - Whether the block drops itself and it's loot.
      Returns:
      Whether the block was changed.
      DocParam:
      pos new BlockPos(0, 1, 2), doDrops true
    • destroyBlock

      public static boolean destroyBlock(net.minecraft.world.level.LevelWriter internal, net.minecraft.core.BlockPos pos, boolean doDrops, net.minecraft.world.entity.Entity breaker)
      Destroys a block within the world.
      Parameters:
      pos - The position of the block.
      doDrops - Whether the block drops itself and it's loot.
      breaker - The entity to break the block.
      Returns:
      Whether the block was changed.
      DocParam:
      pos new BlockPos(0, 1, 2), doDrops true, breaker player
    • destroyBlock

      public static boolean destroyBlock(net.minecraft.world.level.LevelWriter internal, net.minecraft.core.BlockPos pos, boolean dropBlock, @Nullable @Nullable net.minecraft.world.entity.Entity entity, int recursionLeft)
    • addFreshEntity

      public static boolean addFreshEntity(net.minecraft.world.level.LevelWriter internal, net.minecraft.world.entity.Entity entity)
      add an entity to the world, return if the entity is added successfully.