forked from xsun2001/Applied-Energistics-2-Unofficial
-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'koiNoCirculation/add-oncompletelistener…
…' into dev
- Loading branch information
Showing
5 changed files
with
186 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package appeng.api.util; | ||
|
||
import java.io.Serializable; | ||
|
||
public interface CraftCancelListener extends Runnable, Serializable { | ||
|
||
long serialVersionUID = 932472384532L; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package appeng.api.util; | ||
|
||
import java.io.Serializable; | ||
|
||
import net.minecraft.item.ItemStack; | ||
|
||
@FunctionalInterface | ||
public interface CraftCompleteListener extends Serializable { | ||
|
||
long serialVersionUID = 734594276097234589L; | ||
|
||
/** | ||
* Applies this function to the given arguments. | ||
* | ||
* @param finalOutput the output of job | ||
* @param numsOfOutput the size of output stack | ||
* @param elapsedTime the | ||
* @return the function result | ||
*/ | ||
void apply(ItemStack finalOutput, long numsOfOutput, long elapsedTime); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package appeng.api.util; | ||
|
||
import java.io.Serializable; | ||
import java.util.function.IntConsumer; | ||
|
||
/** | ||
* consumes an integer, if it's larger than 0, it means the crafting is not stucked. | ||
*/ | ||
@FunctionalInterface | ||
public interface CraftUpdateListener extends IntConsumer, Serializable { | ||
|
||
long serialVersionUID = 83482599346L; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters