Skip to content

Commit

Permalink
Requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ipad54 committed Sep 1, 2024
1 parent eb23afc commit f358cf8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/item/ChorusFruit.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,6 @@ public function getCooldownTicks() : int{
}

public function getCooldownTag() : ?string{
return VanillaCooldownTags::CHORUS_FRUIT;
return ItemCooldownTags::CHORUS_FRUIT;
}
}
2 changes: 1 addition & 1 deletion src/item/EnderPearl.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@ public function getCooldownTicks() : int{
}

public function getCooldownTag() : ?string{
return VanillaCooldownTags::ENDER_PEARL;
return ItemCooldownTags::ENDER_PEARL;
}
}
2 changes: 1 addition & 1 deletion src/item/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ public function getCooldownTicks() : int{
*
* If tag is null, item state id will be used to store cooldown.
*
* @see VanillaCooldownTags
* @see ItemCooldownTags
*/
public function getCooldownTag() : ?string{
return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,17 @@
* Tags used by items to determine their cooldown group.
* @see Item::getCooldownTag()
*/
final class VanillaCooldownTags{
final class ItemCooldownTags{

private function __construct(){
//NOOP
}

/**
* These tag values are not related to Minecraft internal IDs.
* They only share a visual similarity because these are the most obvious values to use.
* Any arbitrary string can be used.
*/
public const CHORUS_FRUIT = "chorus_fruit";
public const ENDER_PEARL = "ender_pearl";
public const SHIELD = "shield";
Expand Down

0 comments on commit f358cf8

Please sign in to comment.