Class SpaceSuit
java.lang.Object
io.github.thebusybiscuit.slimefun5.api.items.SlimefunItem
io.github.addoncommunity.galactifun.api.items.spacesuit.SpaceSuit
- All Implemented Interfaces:
io.github.thebusybiscuit.slimefun5.core.attributes.ItemAttribute, io.github.thebusybiscuit.slimefun5.core.attributes.Placeable, io.github.thebusybiscuit.slimefun5.core.attributes.ProtectiveArmor
- Direct Known Subclasses:
SpaceSuitHelmet
@ParametersAreNonnullByDefault
public class SpaceSuit
extends io.github.thebusybiscuit.slimefun5.api.items.SlimefunItem
implements io.github.thebusybiscuit.slimefun5.core.attributes.ProtectiveArmor
-
Field Summary
Fields inherited from class io.github.thebusybiscuit.slimefun5.api.items.SlimefunItem
addon, disenchantable, enchantable, hidden, recipeOutput, useableInWorkbench -
Constructor Summary
ConstructorsConstructorDescriptionSpaceSuit(io.github.thebusybiscuit.slimefun5.api.items.ItemGroup category, io.github.thebusybiscuit.slimefun5.api.items.SlimefunItemStack item, io.github.thebusybiscuit.slimefun5.api.recipes.RecipeType recipeType, org.bukkit.inventory.ItemStack[] recipe, int maxUpgrades, int maxOxygen) Keep in mind you need 1 oxygen per second irl -
Method Summary
Modifier and TypeMethodDescriptionfinal io.github.thebusybiscuit.slimefun5.libraries.keys.NamespacedKeystatic intgetOxygen(org.bukkit.inventory.ItemStack item, org.bukkit.inventory.meta.ItemMeta meta, int change) final intgetOxygen(org.bukkit.inventory.meta.ItemMeta meta) io.github.thebusybiscuit.slimefun5.core.attributes.ProtectionType[]booleanintintstatic StringoxygenLore(int amount, int max) voidfinal voidsetOxygen(org.bukkit.inventory.meta.ItemMeta meta, int oxygen) Methods inherited from class io.github.thebusybiscuit.slimefun5.api.items.SlimefunItem
addItemHandler, addItemSetting, addOfficialWikipage, bakeTranslatedDisplay, callItemHandler, canUse, decorateBakedTemplate, equals, error, getAddon, getBlockTicker, getById, getByItem, getByItem, getDrops, getDrops, getGuideType, getHandlers, getId, getItem, getItemGroup, getItemName, getItemSetting, getItemSettings, getOptionalById, getOptionalByItem, getRecipe, getRecipeOutput, getRecipeType, getResearch, getState, getWikipage, hashCode, hasResearch, info, isDisabled, isDisabledIn, isDisenchantable, isEnchantable, isHidden, isItem, isTicking, isUseableInWorkbench, load, preRegister, register, sendDeprecationWarning, setGuideType, setHidden, setItemGroup, setRecipe, setRecipeOutput, setRecipeType, setResearch, setUseableInWorkbench, setWikiText, toString, warnMethods inherited from interface io.github.thebusybiscuit.slimefun5.core.attributes.ItemAttribute
getIdMethods inherited from interface io.github.thebusybiscuit.slimefun5.core.attributes.Placeable
useVanillaBlockBreaking
-
Constructor Details
-
SpaceSuit
public SpaceSuit(io.github.thebusybiscuit.slimefun5.api.items.ItemGroup category, io.github.thebusybiscuit.slimefun5.api.items.SlimefunItemStack item, io.github.thebusybiscuit.slimefun5.api.recipes.RecipeType recipeType, org.bukkit.inventory.ItemStack[] recipe, int maxUpgrades, int maxOxygen) Keep in mind you need 1 oxygen per second irl
-
-
Method Details
-
getProtectionTypes
@Nonnull public io.github.thebusybiscuit.slimefun5.core.attributes.ProtectionType[] getProtectionTypes()- Specified by:
getProtectionTypesin interfaceio.github.thebusybiscuit.slimefun5.core.attributes.ProtectiveArmor
-
postRegister
public void postRegister()- Overrides:
postRegisterin classio.github.thebusybiscuit.slimefun5.api.items.SlimefunItem
-
isFullSetRequired
public boolean isFullSetRequired()- Specified by:
isFullSetRequiredin interfaceio.github.thebusybiscuit.slimefun5.core.attributes.ProtectiveArmor
-
getArmorSetId
@Nonnull public final io.github.thebusybiscuit.slimefun5.libraries.keys.NamespacedKey getArmorSetId()- Specified by:
getArmorSetIdin interfaceio.github.thebusybiscuit.slimefun5.core.attributes.ProtectiveArmor
-
getOxygen
public static int getOxygen(org.bukkit.inventory.ItemStack item, org.bukkit.inventory.meta.ItemMeta meta, int change) -
getOxygen
public final int getOxygen(org.bukkit.inventory.meta.ItemMeta meta) -
setOxygen
public final void setOxygen(org.bukkit.inventory.meta.ItemMeta meta, int oxygen) -
oxygenLore
-
maxUpgrades
public int maxUpgrades() -
maxOxygen
public int maxOxygen()
-