Class RevolveOperation

java.lang.Object
com.hypixel.hytale.builtin.buildertools.tooloperations.ToolOperation
com.hypixel.hytale.builtin.buildertools.tooloperations.RevolveOperation
All Implemented Interfaces:
TriIntObjPredicate<Void>

public class RevolveOperation extends ToolOperation
Rotates a selection around a center point multiple times using trigonometry. Multiple sampling methods are available to get desired results.
  • Constructor Details

  • Method Details

    • centersOnPlayer

      public static boolean centersOnPlayer(@Nullable Map<String,Object> toolArgs)
      Whether a revolve turns the selection about the player rather than about the cell the stroke hit.

      The area a stroke sweeps is worked out before the operation exists, so the caller that loads that area and the operation that runs read the configuration through the same methods.

    • configuredDistance

      public static int configuredDistance(@Nullable Map<String,Object> toolArgs)
      How far out from the center a revolve holds the selection, or 0 when it turns it where it lies.
    • execute

      public void execute(ComponentAccessor<EntityStore> componentAccessor)
      Overrides:
      execute in class ToolOperation
    • executeAt

      public void executeAt(int posX, int posY, int posZ, ComponentAccessor<EntityStore> componentAccessor)
      Description copied from class: ToolOperation
      Executes the brush operation at a specific position (for interpolation support).
      Overrides:
      executeAt in class ToolOperation
      Parameters:
      posX - The x coordinate to execute at
      posY - The y coordinate to execute at
      posZ - The z coordinate to execute at
      componentAccessor - The component accessor