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 theMonthin which thisSeasonalItemGroupwill appear.booleanisAccessible(org.bukkit.entity.Player p) This method returns whether thisItemGroupcan 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, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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 theMonthin which thisSeasonalItemGroupwill appear.- Returns:
- the
Monthin which thisSeasonalItemGroupappears
-
isAccessible
public boolean isAccessible(@Nonnull org.bukkit.entity.Player p) Description copied from class:ItemGroupThis method returns whether thisItemGroupcan be accessed by the givenPlayer. If anItemGroupis not accessible, it will not show up in theSlimefunGuidenor will items from thisItemGroupshow up in the guide search.- Overrides:
isAccessiblein classItemGroup- Parameters:
p- ThePlayerto check for- Returns:
- Whether this
ItemGroupis accessible by the givenPlayer
-