Class TickedWorldOperation

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

@Deprecated(forRemoval=true) public class TickedWorldOperation extends Object implements ITickedWorldOperation
Deprecated, for removal: This API element is subject to removal in a future version.
Contains an operation, as remove block, replace block, place structure, etc.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    Deprecated, for removal: This API element is subject to removal in a future version.
    Scan tool operation types.
  • Constructor Summary

    Constructors
    Constructor
    Description
    TickedWorldOperation(StructurePlacer placer, @Nullable net.minecraft.world.entity.player.Player player)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Create a ScanToolOperation for an structure placement.
    TickedWorldOperation(ChangeStorage storage, @Nullable net.minecraft.world.entity.player.Player player, TickedWorldOperation.OperationType operation)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Create a ScanToolOperation for an UNDO.
    TickedWorldOperation(TickedWorldOperation.OperationType type, net.minecraft.core.BlockPos startPos, net.minecraft.core.BlockPos endPos, @Nullable net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack firstBlock, net.minecraft.world.item.ItemStack secondBlock, int pct)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Create a ScanToolOperation.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    apply(net.minecraft.server.level.ServerLevel world)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Apply the operation on the world.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Get the current change storage of this operation.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Create a ScanToolOperation for an structure placement.
      Parameters:
      placer - the structure for the placement..
      player - the player.
  • Method Details

    • apply

      public boolean apply(net.minecraft.server.level.ServerLevel world)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: ITickedWorldOperation
      Apply the operation on the world.
      Specified by:
      apply in interface ITickedWorldOperation
      Parameters:
      world - the world to apply them on.
      Returns:
      true if finished.
    • getChangeStorage

      public ChangeStorage getChangeStorage()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: ITickedWorldOperation
      Get the current change storage of this operation.
      Specified by:
      getChangeStorage in interface ITickedWorldOperation
      Returns:
      the ChangeStorage object.