-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/SlimefunReloadingProject/Ry…
…kenSlimeCustomizer chore: fix merge confilcts
- Loading branch information
Showing
33 changed files
with
122 additions
and
167 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
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
2 changes: 1 addition & 1 deletion
2
...ustomizer/libraries/Colors/CMIColors.java → ...ustomizer/libraries/colors/CMIColors.java
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
2 changes: 1 addition & 1 deletion
2
...zer/libraries/Colors/CMICustomColors.java → ...zer/libraries/colors/CMICustomColors.java
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
2 changes: 1 addition & 1 deletion
2
.../libraries/Version/MinecraftPlatform.java → .../libraries/version/MinecraftPlatform.java
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
2 changes: 1 addition & 1 deletion
2
...customizer/libraries/Version/Version.java → ...customizer/libraries/version/Version.java
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
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
24 changes: 24 additions & 0 deletions
24
...ava/org/lins/mmmjjkx/rykenslimefuncustomizer/objects/customs/CustomCraftingOperation.java
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,24 @@ | ||
package org.lins.mmmjjkx.rykenslimefuncustomizer.objects.customs; | ||
|
||
import io.github.thebusybiscuit.slimefun4.implementation.operations.CraftingOperation; | ||
import io.github.thebusybiscuit.slimefun4.libraries.commons.lang.Validate; | ||
import javax.annotation.Nonnull; | ||
import lombok.Getter; | ||
import org.lins.mmmjjkx.rykenslimefuncustomizer.objects.machine.CustomMachineRecipe; | ||
|
||
@Getter | ||
public class CustomCraftingOperation extends CraftingOperation { | ||
private CustomMachineRecipe recipe; | ||
|
||
public CustomCraftingOperation(@Nonnull CustomMachineRecipe recipe) { | ||
super(recipe.getInput(), recipe.getOutput(), recipe.getTicks()); | ||
Validate.isTrue( | ||
recipe.getTicks() >= 0, | ||
"The amount of total ticks must be a positive integer or zero, received: " + recipe.getTicks()); | ||
this.recipe = recipe; | ||
} | ||
|
||
public int getTotalTicks() { | ||
return recipe.getTicks(); | ||
} | ||
} |
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
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
Oops, something went wrong.