Skip to content

Commit

Permalink
chore: fix some nits
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriel Harris-Rouquette <gabizou@me.com>
  • Loading branch information
gabizou committed Sep 13, 2024
1 parent b3b13e9 commit 942b191
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public interface CooldownTracker {
* @return Whether or not the specified item type is cooldown
*/
boolean hasCooldown(ItemStack stack);

boolean hasCooldown(ResourceKey group);

/**
Expand All @@ -56,6 +57,7 @@ public interface CooldownTracker {
* on cooldown
*/
Optional<Ticks> cooldown(ItemStack stack);

Optional<Ticks> cooldown(ResourceKey group);

/**
Expand All @@ -68,6 +70,7 @@ public interface CooldownTracker {
* being cancelled
*/
boolean setCooldown(ItemStack stack, Ticks ticks);

boolean setCooldown(ResourceKey group, Ticks ticks);

/**
Expand All @@ -79,6 +82,7 @@ public interface CooldownTracker {
* being cancelled
*/
boolean resetCooldown(ItemStack stack);

boolean resetCooldown(ResourceKey group);

/**
Expand All @@ -92,6 +96,7 @@ public interface CooldownTracker {
* @return The fraction of cooldown remaining for the specified item type
*/
OptionalDouble fractionRemaining(ItemStack stack);

OptionalDouble fractionRemaining(ResourceKey group);

}
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,10 @@
import org.spongepowered.api.item.recipe.Recipe;
import org.spongepowered.api.item.recipe.RecipeRegistration;
import org.spongepowered.api.item.recipe.RecipeType;
import org.spongepowered.api.item.recipe.cooking.CookingRecipe;
import org.spongepowered.api.item.recipe.crafting.Ingredient;
import org.spongepowered.api.item.recipe.crafting.RecipeInput;
import org.spongepowered.api.util.ResourceKeyedBuilder;

import java.util.List;
import java.util.function.Function;
import java.util.function.Supplier;

Expand Down

0 comments on commit 942b191

Please sign in to comment.