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
ConstructorsConstructorDescriptionSeasonalItemGroup(NamespacedKey key, Month month, int tier, ItemStack item) The constructor for aSeasonalItemGroup. -
Method Summary
Modifier and TypeMethodDescriptiongetMonth()This method returns theMonthin which thisSeasonalItemGroupwill appear.booleanMethods 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- TheNamespacedKeythat is used to identify thisItemGroupmonth- The month when theItemGroupshould be displayed (from 1 = January ; to 12 = December)tier- The tier of thisItemGroupitem- The display item for thisItemGroup
-
-
Method Details
-
getMonth
This method returns theMonthin which thisSeasonalItemGroupwill appear.- Returns:
- the
Monthin which thisSeasonalItemGroupappears
-
isAccessible
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
-