Skip to content

Commit

Permalink
feat: update to 24w36a
Browse files Browse the repository at this point in the history
  • Loading branch information
gabizou committed Sep 8, 2024
1 parent 587166f commit bb588e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public interface CooldownTracker {
* Checks if the specified {@link ItemType} is currently on cooldown
* for the player.
*
* @param type The item type to check is on cooldown
* @param stack The item type to check is on cooldown
* @return Whether or not the specified item type is cooldown
*/
boolean hasCooldown(ItemStack stack);
Expand All @@ -51,7 +51,7 @@ public interface CooldownTracker {
* Gets the cooldown of the specified {@link ItemType} in ticks for the
* player, or empty if the the item type is currently not on cooldown.
*
* @param type The item type to get the cooldown for
* @param stack The item type to get the cooldown for
* @return The cooldown remaining for this item type in ticks, if not
* on cooldown
*/
Expand All @@ -62,7 +62,7 @@ public interface CooldownTracker {
* Sets the cooldown for the specified {@link ItemType} for the
* specified amount of ticks.
*
* @param type The item type to set the cooldown for
* @param stack The item type to set the cooldown for
* @param ticks The amount of ticks to set the item type on cooldown for
* @return False if setting the cooldown failed, possibly due to the event
* being cancelled
Expand All @@ -74,7 +74,7 @@ public interface CooldownTracker {
* Resets the cooldown of the specified {@link ItemType} for the
* player.
*
* @param type The item type to reset the cooldown for
* @param stack The item type to reset the cooldown for
* @return False if setting the cooldown failed, possibly due to the event
* being cancelled
*/
Expand All @@ -88,7 +88,7 @@ public interface CooldownTracker {
*
* <p>If present, this value will be between 0.0 and 1.0.</p>
*
* @param type The item type to get the cooldown fraction remaining
* @param stack The item type to get the cooldown fraction remaining
* @return The fraction of cooldown remaining for the specified item type
*/
OptionalDouble fractionRemaining(ItemStack stack);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ public final class StatisticCategories {

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

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

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

0 comments on commit bb588e3

Please sign in to comment.