Skip to content

Commit bb588e3

Browse files
committed
feat: update to 24w36a
1 parent 587166f commit bb588e3

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/main/java/org/spongepowered/api/entity/living/player/CooldownTracker.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public interface CooldownTracker {
4141
* Checks if the specified {@link ItemType} is currently on cooldown
4242
* for the player.
4343
*
44-
* @param type The item type to check is on cooldown
44+
* @param stack The item type to check is on cooldown
4545
* @return Whether or not the specified item type is cooldown
4646
*/
4747
boolean hasCooldown(ItemStack stack);
@@ -51,7 +51,7 @@ public interface CooldownTracker {
5151
* Gets the cooldown of the specified {@link ItemType} in ticks for the
5252
* player, or empty if the the item type is currently not on cooldown.
5353
*
54-
* @param type The item type to get the cooldown for
54+
* @param stack The item type to get the cooldown for
5555
* @return The cooldown remaining for this item type in ticks, if not
5656
* on cooldown
5757
*/
@@ -62,7 +62,7 @@ public interface CooldownTracker {
6262
* Sets the cooldown for the specified {@link ItemType} for the
6363
* specified amount of ticks.
6464
*
65-
* @param type The item type to set the cooldown for
65+
* @param stack The item type to set the cooldown for
6666
* @param ticks The amount of ticks to set the item type on cooldown for
6767
* @return False if setting the cooldown failed, possibly due to the event
6868
* being cancelled
@@ -74,7 +74,7 @@ public interface CooldownTracker {
7474
* Resets the cooldown of the specified {@link ItemType} for the
7575
* player.
7676
*
77-
* @param type The item type to reset the cooldown for
77+
* @param stack The item type to reset the cooldown for
7878
* @return False if setting the cooldown failed, possibly due to the event
7979
* being cancelled
8080
*/
@@ -88,7 +88,7 @@ public interface CooldownTracker {
8888
*
8989
* <p>If present, this value will be between 0.0 and 1.0.</p>
9090
*
91-
* @param type The item type to get the cooldown fraction remaining
91+
* @param stack The item type to get the cooldown fraction remaining
9292
* @return The fraction of cooldown remaining for the specified item type
9393
*/
9494
OptionalDouble fractionRemaining(ItemStack stack);

src/main/java/org/spongepowered/api/statistic/StatisticCategories.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ public final class StatisticCategories {
5252

5353
public static final DefaultedRegistryReference<StatisticCategory.Typed<EntityType>> KILLED = StatisticCategories.typedKey(ResourceKey.minecraft("killed"));
5454

55+
@SuppressWarnings("rawtypes")
5556
public static final DefaultedRegistryReference<StatisticCategory.Typed<EntityType>> KILLED_BY = StatisticCategories.typedKey(ResourceKey.minecraft("killed_by"));
5657

5758
public static final DefaultedRegistryReference<StatisticCategory.Typed<BlockType>> MINED = StatisticCategories.typedKey(ResourceKey.minecraft("mined"));

0 commit comments

Comments
 (0)