Skip to content
This repository has been archived by the owner on Dec 14, 2024. It is now read-only.

Commit

Permalink
Use annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
esotericenderman committed Oct 7, 2024
1 parent bf44fed commit a48d95c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import org.bukkit.Material;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
import org.jetbrains.annotations.NotNull;

public enum HatType implements Cosmetic {
TOP_HAT(new TranslatableItemStack(Material.PLAYER_HEAD, Message.TOP_HAT_DISPLAY_NAME, Message.TOP_HAT_DESCRIPTION)),
Expand All @@ -20,7 +21,7 @@ public enum HatType implements Cosmetic {
}

@Override
public ItemStack getDisplayItem(Player player, TSSLobbyPlugin plugin) {
public ItemStack getDisplayItem(Player player, @NotNull TSSLobbyPlugin plugin) {
return item.asBukkitItemStack(player, plugin.getCore());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import org.bukkit.Particle;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
import org.jetbrains.annotations.NotNull;

public enum TrailType implements ParticleCosmetic {
HEART(
Expand Down Expand Up @@ -60,7 +61,7 @@ public enum TrailType implements ParticleCosmetic {
}

@Override
public ItemStack getDisplayItem(Player player, TSSLobbyPlugin plugin) {
public ItemStack getDisplayItem(Player player, @NotNull TSSLobbyPlugin plugin) {
return displayItem.asBukkitItemStack(player, plugin.getCore());
}

Expand Down

0 comments on commit a48d95c

Please sign in to comment.