Class MedicalSupply<T extends ItemHandler>
java.lang.Object
io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
io.github.thebusybiscuit.slimefun4.implementation.items.SimpleSlimefunItem<T>
io.github.thebusybiscuit.slimefun4.implementation.items.medical.MedicalSupply<T>
- All Implemented Interfaces:
Placeable
-
Field Summary
Fields inherited from class io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
addon, disenchantable, enchantable, hidden, recipeOutput, useableInWorkbench
-
Constructor Summary
ModifierConstructorDescriptionprotected
MedicalSupply
(ItemGroup itemGroup, int healAmount, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe) -
Method Summary
Modifier and TypeMethodDescriptionvoid
This method clears any negativePotionEffect
from the givenLivingEntity
.This returns thePotionEffects
cured from thisMedicalSupply
.void
heal
(LivingEntity n) This method heals the givenLivingEntity
by the amount provided via the constructor.Methods inherited from class io.github.thebusybiscuit.slimefun4.implementation.items.SimpleSlimefunItem
getItemHandler, 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.Placeable
useVanillaBlockBreaking
-
Constructor Details
-
MedicalSupply
@ParametersAreNonnullByDefault protected MedicalSupply(ItemGroup itemGroup, int healAmount, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe)
-
-
Method Details
-
getCuredEffects
This returns thePotionEffects
cured from thisMedicalSupply
.- Returns:
- An immutable
Set
of curedPotionEffects
-
clearNegativeEffects
This method clears any negativePotionEffect
from the givenLivingEntity
.- Parameters:
n
- TheLivingEntity
to clear the effects from.
-
heal
This method heals the givenLivingEntity
by the amount provided via the constructor.- Parameters:
n
- TheLivingEntity
to heal
-