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
ConstructorsModifierConstructorDescriptionprotectedMedicalSupply(ItemGroup itemGroup, int healAmount, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe) -
Method Summary
Modifier and TypeMethodDescriptionvoidThis method clears any negativePotionEffectfrom the givenLivingEntity.This returns thePotionEffectscured from thisMedicalSupply.voidheal(LivingEntity n) This method heals the givenLivingEntityby the amount provided via the constructor.Methods inherited from class io.github.thebusybiscuit.slimefun4.implementation.items.SimpleSlimefunItem
getItemHandler, preRegisterMethods 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, warnMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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 thePotionEffectscured from thisMedicalSupply.- Returns:
- An immutable
Setof curedPotionEffects
-
clearNegativeEffects
This method clears any negativePotionEffectfrom the givenLivingEntity.- Parameters:
n- TheLivingEntityto clear the effects from.
-
heal
This method heals the givenLivingEntityby the amount provided via the constructor.- Parameters:
n- TheLivingEntityto heal
-