Class SeasonalItemGroup
java.lang.Object
io.github.thebusybiscuit.slimefun4.api.items.ItemGroup
io.github.thebusybiscuit.slimefun4.api.items.groups.SeasonalItemGroup
- All Implemented Interfaces:
Keyed
- Author:
- TheBusyBiscuit
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSeasonalItemGroup
(NamespacedKey key, Month month, int tier, ItemStack item) The constructor for aSeasonalItemGroup
. -
Method Summary
Modifier and TypeMethodDescriptiongetMonth()
This method returns theMonth
in which thisSeasonalItemGroup
will appear.boolean
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
-
Constructor Details
-
SeasonalItemGroup
@ParametersAreNonnullByDefault public SeasonalItemGroup(NamespacedKey key, Month month, int tier, ItemStack item) The constructor for aSeasonalItemGroup
.- Parameters:
key
- TheNamespacedKey
that is used to identify thisItemGroup
month
- The month when theItemGroup
should be displayed (from 1 = January ; to 12 = December)tier
- The tier of thisItemGroup
item
- The display item for thisItemGroup
-
-
Method Details
-
getMonth
This method returns theMonth
in which thisSeasonalItemGroup
will appear.- Returns:
- the
Month
in which thisSeasonalItemGroup
appears
-
isAccessible
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
-