Contents
Class RevolveOperation
java.lang.Object
com.hypixel.hytale.builtin.buildertools.tooloperations.ToolOperation
com.hypixel.hytale.builtin.buildertools.tooloperations.RevolveOperation
- All Implemented Interfaces:
TriIntObjPredicate<Void>
Rotates a selection around a center point multiple times using trigonometry.
Multiple sampling methods are available to get desired results.
-
Field Summary
Fields inherited from class ToolOperation
DEFAULT_BRUSH_SIZE, DEFAULT_BRUSH_SPACING, MAX_DISTANCE, OPERATIONS, PROTOTYPE_TOOL_SETTINGS -
Constructor Summary
ConstructorsConstructorDescriptionRevolveOperation(Ref<EntityStore> ref, Player player, PlayerRef playerRef, BuilderToolOnUseInteraction packet, ComponentAccessor<EntityStore> componentAccessor) -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancentersOnPlayer(Map<String, Object> toolArgs) Whether a revolve turns the selection about the player rather than about the cell the stroke hit.static intconfiguredDistance(Map<String, Object> toolArgs) How far out from the center a revolve holds the selection, or 0 when it turns it where it lies.voidexecute(ComponentAccessor<EntityStore> componentAccessor) voidexecuteAt(int posX, int posY, int posZ, ComponentAccessor<EntityStore> componentAccessor) Executes the brush operation at a specific position (for interpolation support).Methods inherited from class ToolOperation
calculateInterpolatedPositions, combineMasks, executeAsBrushConfig, executeShapeOperation, fromPacket, getBrushHeight, getBrushRotation, getBrushSpacing, getBrushWidth, getEditOperation, getOrCreatePrototypeSettings, getPosition, getSkippedTints, getTargetBlockAvoidingPaint, getTargetBlockAvoidingPaint, showEditNotification, test
-
Constructor Details
-
RevolveOperation
public RevolveOperation(@Nonnull Ref<EntityStore> ref, @Nonnull Player player, @Nonnull PlayerRef playerRef, @Nonnull BuilderToolOnUseInteraction packet, @Nonnull ComponentAccessor<EntityStore> componentAccessor)
-
-
Method Details
-
centersOnPlayer
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
-
execute
- Overrides:
executein classToolOperation
-
executeAt
public void executeAt(int posX, int posY, int posZ, ComponentAccessor<EntityStore> componentAccessor) Description copied from class:ToolOperationExecutes the brush operation at a specific position (for interpolation support).- Overrides:
executeAtin classToolOperation- Parameters:
posX- The x coordinate to execute atposY- The y coordinate to execute atposZ- The z coordinate to execute atcomponentAccessor- The component accessor
-