Class RemoveFilteredOperation

All Implemented Interfaces:
ITickedWorldOperation

public class RemoveFilteredOperation extends AreaOperation
Operation for removing multiple types of blocks.
  • Constructor Details

    • RemoveFilteredOperation

      public RemoveFilteredOperation(net.minecraft.world.entity.player.Player player, net.minecraft.core.BlockPos startPos, net.minecraft.core.BlockPos endPos, List<net.minecraft.world.item.ItemStack> blocks)
      Default constructor.
      Parameters:
      startPos - the start pos to iterate from.
      endPos - the end pos to iterate to.
      blocks - what type of blocks to remove.
  • Method Details

    • apply

      protected void apply(net.minecraft.server.level.ServerLevel world, net.minecraft.core.BlockPos position)
      Description copied from class: AreaOperation
      Apply the operation on the world.
      Specified by:
      apply in class AreaOperation
      Parameters:
      world - the world to apply them on.
      position - the current area position.