File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
src/main/java/org/spongepowered/api Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ public interface CooldownTracker {
4545 * @return Whether or not the specified item type is cooldown
4646 */
4747 boolean hasCooldown (ItemStack stack );
48+
4849 boolean hasCooldown (ResourceKey group );
4950
5051 /**
@@ -56,6 +57,7 @@ public interface CooldownTracker {
5657 * on cooldown
5758 */
5859 Optional <Ticks > cooldown (ItemStack stack );
60+
5961 Optional <Ticks > cooldown (ResourceKey group );
6062
6163 /**
@@ -68,6 +70,7 @@ public interface CooldownTracker {
6870 * being cancelled
6971 */
7072 boolean setCooldown (ItemStack stack , Ticks ticks );
73+
7174 boolean setCooldown (ResourceKey group , Ticks ticks );
7275
7376 /**
@@ -79,6 +82,7 @@ public interface CooldownTracker {
7982 * being cancelled
8083 */
8184 boolean resetCooldown (ItemStack stack );
85+
8286 boolean resetCooldown (ResourceKey group );
8387
8488 /**
@@ -92,6 +96,7 @@ public interface CooldownTracker {
9296 * @return The fraction of cooldown remaining for the specified item type
9397 */
9498 OptionalDouble fractionRemaining (ItemStack stack );
99+
95100 OptionalDouble fractionRemaining (ResourceKey group );
96101
97102}
Original file line number Diff line number Diff line change 3434import org .spongepowered .api .item .recipe .Recipe ;
3535import org .spongepowered .api .item .recipe .RecipeRegistration ;
3636import org .spongepowered .api .item .recipe .RecipeType ;
37- import org .spongepowered .api .item .recipe .cooking .CookingRecipe ;
3837import org .spongepowered .api .item .recipe .crafting .Ingredient ;
3938import org .spongepowered .api .item .recipe .crafting .RecipeInput ;
4039import org .spongepowered .api .util .ResourceKeyedBuilder ;
4140
42- import java .util .List ;
4341import java .util .function .Function ;
4442import java .util .function .Supplier ;
4543
You can’t perform that action at this time.
0 commit comments