Class Cooler
java.lang.Object
io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
io.github.thebusybiscuit.slimefun4.implementation.items.SimpleSlimefunItem<ItemUseHandler>
io.github.thebusybiscuit.slimefun4.implementation.items.backpacks.SlimefunBackpack
io.github.thebusybiscuit.slimefun4.implementation.items.backpacks.Cooler
- All Implemented Interfaces:
DistinctiveItem
,ItemAttribute
,Placeable
The
Cooler
is a special variant of the SlimefunBackpack
.
It can only hold Juices
and auto-consumes those when a Player
loses hunger while carrying a Cooler
filled with Juice
.- Author:
- TheBusyBiscuit
- See Also:
-
Field Summary
Fields inherited from class io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
addon, disenchantable, enchantable, hidden, recipeOutput, useableInWorkbench
-
Constructor Summary
ConstructorDescriptionCooler
(int size, ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe) -
Method Summary
Modifier and TypeMethodDescriptionboolean
isItemAllowed
(ItemStack item, SlimefunItem itemAsSlimefunItem) This method returns whether a givenItemStack
is allowed to be stored in thisSlimefunBackpack
.Methods inherited from class io.github.thebusybiscuit.slimefun4.implementation.items.backpacks.SlimefunBackpack
canStack, getItemHandler, getSize
Methods inherited from class io.github.thebusybiscuit.slimefun4.implementation.items.SimpleSlimefunItem
preRegister
Methods inherited from class io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
addItemHandler, addItemSetting, addOfficialWikipage, callItemHandler, canUse, equals, error, getAddon, getBlockTicker, getById, getByItem, getDrops, getDrops, getHandlers, getId, getItem, getItemGroup, getItemName, getItemSetting, getItemSettings, getOptionalById, getOptionalByItem, getRecipe, getRecipeOutput, getRecipeType, getResearch, getState, getWikipage, hashCode, hasResearch, info, isDisabled, isDisabledIn, isDisenchantable, isEnchantable, isHidden, isItem, isItemStackImmutable, isTicking, isUseableInWorkbench, load, postRegister, register, sendDeprecationWarning, setHidden, setItemGroup, setRecipe, setRecipeOutput, setRecipeType, setResearch, setUseableInWorkbench, toString, warn
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.github.thebusybiscuit.slimefun4.core.attributes.ItemAttribute
getId
Methods inherited from interface io.github.thebusybiscuit.slimefun4.core.attributes.Placeable
useVanillaBlockBreaking
-
Constructor Details
-
Cooler
@ParametersAreNonnullByDefault public Cooler(int size, ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe)
-
-
Method Details
-
isItemAllowed
Description copied from class:SlimefunBackpack
This method returns whether a givenItemStack
is allowed to be stored in thisSlimefunBackpack
.- Overrides:
isItemAllowed
in classSlimefunBackpack
- Parameters:
item
- TheItemStack
to check foritemAsSlimefunItem
- The sameItemStack
as aSlimefunItem
, might be null- Returns:
- Whether the given
ItemStack
is allowed to be put into thisSlimefunBackpack
-