Class TickedWorldOperation

java.lang.Object
com.ldtteam.structurize.util.TickedWorldOperation
All Implemented Interfaces:
ITickedWorldOperation

public class TickedWorldOperation extends Object implements ITickedWorldOperation
Contains an operation, as remove block, replace block, place structure, etc.
  • Constructor Details

    • TickedWorldOperation

      public TickedWorldOperation(TickedWorldOperation.OperationType type, net.minecraft.core.BlockPos startPos, net.minecraft.core.BlockPos endPos, @Nullable @Nullable net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack firstBlock, net.minecraft.world.item.ItemStack secondBlock, int pct)
      Create a ScanToolOperation.
      Parameters:
      type - the type.
      startPos - the start position.
      endPos - the end position.
      player - the player who triggered the event.
      firstBlock - the block being altered.
      secondBlock - the block it will be replaced with.
      pct - the percentage of positions to execute the operation on.
    • TickedWorldOperation

      public TickedWorldOperation(ChangeStorage storage, @Nullable @Nullable net.minecraft.world.entity.player.Player player, TickedWorldOperation.OperationType operation)
      Create a ScanToolOperation for an UNDO.
      Parameters:
      storage - the storage for the UNDO.
      player - the player.
    • TickedWorldOperation

      public TickedWorldOperation(StructurePlacer placer, @Nullable @Nullable net.minecraft.world.entity.player.Player player)
      Create a ScanToolOperation for an structure placement.
      Parameters:
      placer - the structure for the placement..
      player - the player.
  • Method Details