Class MiningOperation
java.lang.Object
io.github.thebusybiscuit.slimefun4.implementation.operations.MiningOperation
- All Implemented Interfaces:
 MachineOperation
- Direct Known Subclasses:
 GEOMiningOperation
This 
MachineOperation represents an operation
 with no inputs, only a result.- Author:
 - TheBusyBiscuit
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddProgress(int num) This method adds the given amount of ticks to the progress.intThis returns the amount of progress that has been made.This returns the result of this operation, theItemStackthat will be returned in the end.intThis returns the amount of total ticks thisMachineOperationtakes to complete.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.thebusybiscuit.slimefun4.core.machines.MachineOperation
getRemainingTicks, isFinished, onCancel 
- 
Constructor Details
- 
MiningOperation
 
 - 
 - 
Method Details
- 
addProgress
public void addProgress(int num) Description copied from interface:MachineOperationThis method adds the given amount of ticks to the progress.- Specified by:
 addProgressin interfaceMachineOperation- Parameters:
 num- The amount of ticks to add to the progress
 - 
getResult
This returns the result of this operation, theItemStackthat will be returned in the end.- Returns:
 - The result of this operation
 
 - 
getProgress
public int getProgress()Description copied from interface:MachineOperationThis returns the amount of progress that has been made. It's basically the amount of elapsed ticks since theMachineOperationhas started.- Specified by:
 getProgressin interfaceMachineOperation- Returns:
 - The amount of elapsed ticks
 
 - 
getTotalTicks
public int getTotalTicks()Description copied from interface:MachineOperationThis returns the amount of total ticks thisMachineOperationtakes to complete.- Specified by:
 getTotalTicksin interfaceMachineOperation- Returns:
 - The amount of total ticks required.
 
 
 -