Class ExpandLevelWriter
java.lang.Object
com.blamejared.crafttweaker.natives.world.ExpandLevelWriter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanaddFreshEntity(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 booleandestroyBlock(net.minecraft.world.level.LevelWriter internal, net.minecraft.core.BlockPos pos, boolean doDrops) Destroys a block within the world.static booleandestroyBlock(net.minecraft.world.level.LevelWriter internal, net.minecraft.core.BlockPos pos, boolean dropBlock, @Nullable net.minecraft.world.entity.Entity entity, int recursionLeft) static booleandestroyBlock(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 booleanremoveBlock(net.minecraft.world.level.LevelWriter internal, net.minecraft.core.BlockPos pos, boolean isMoving) static booleansetBlock(net.minecraft.world.level.LevelWriter internal, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, int flags) static booleansetBlock(net.minecraft.world.level.LevelWriter internal, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, int flags, int recursionLeft)
-
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.
-