Class SeasonalItemGroup
java.lang.Object
io.github.thebusybiscuit.slimefun4.api.items.ItemGroup
io.github.thebusybiscuit.slimefun4.api.items.groups.SeasonalItemGroup
- All Implemented Interfaces:
net.kyori.adventure.key.Keyed
,org.bukkit.Keyed
- Author:
- TheBusyBiscuit
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionSeasonalItemGroup
(org.bukkit.NamespacedKey key, Month month, int tier, org.bukkit.inventory.ItemStack item) The constructor for aSeasonalItemGroup
. -
Method Summary
Modifier and TypeMethodDescriptiongetMonth()
This method returns theMonth
in which thisSeasonalItemGroup
will appear.boolean
isAccessible
(org.bukkit.entity.Player p) This method returns whether thisItemGroup
can be accessed by the givenPlayer
.Methods inherited from class io.github.thebusybiscuit.slimefun4.api.items.ItemGroup
add, contains, equals, getAddon, getDisplayName, getItem, getItems, getKey, getTier, getUnlocalizedName, hashCode, isCrossAddonItemGroup, isHidden, isRegistered, isVisible, register, remove, setCrossAddonItemGroup, setTier, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.bukkit.Keyed
key
-
Constructor Details
-
SeasonalItemGroup
@ParametersAreNonnullByDefault public SeasonalItemGroup(org.bukkit.NamespacedKey key, Month month, int tier, org.bukkit.inventory.ItemStack item) The constructor for aSeasonalItemGroup
.
-
-
Method Details
-
getMonth
This method returns theMonth
in which thisSeasonalItemGroup
will appear.- Returns:
- the
Month
in which thisSeasonalItemGroup
appears
-
isAccessible
public boolean isAccessible(@Nonnull org.bukkit.entity.Player p) Description copied from class:ItemGroup
This method returns whether thisItemGroup
can be accessed by the givenPlayer
. If anItemGroup
is not accessible, it will not show up in theSlimefunGuide
nor will items from thisItemGroup
show up in the guide search.- Overrides:
isAccessible
in classItemGroup
- Parameters:
p
- ThePlayer
to check for- Returns:
- Whether this
ItemGroup
is accessible by the givenPlayer
-