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

    Constructors
    Constructor
    Description
    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 Summary

    Modifier and Type
    Method
    Description
    final io.github.thebusybiscuit.slimefun5.libraries.keys.NamespacedKey
     
    static int
    getOxygen(org.bukkit.inventory.ItemStack item, org.bukkit.inventory.meta.ItemMeta meta, int change)
     
    final int
    getOxygen(org.bukkit.inventory.meta.ItemMeta meta)
     
    io.github.thebusybiscuit.slimefun5.core.attributes.ProtectionType[]
     
    boolean
     
    int
     
    int
     
    static String
    oxygenLore(int amount, int max)
     
    void
     
    final void
    setOxygen(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, warn

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface io.github.thebusybiscuit.slimefun5.core.attributes.ItemAttribute

    getId

    Methods 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:
      getProtectionTypes in interface io.github.thebusybiscuit.slimefun5.core.attributes.ProtectiveArmor
    • postRegister

      public void postRegister()
      Overrides:
      postRegister in class io.github.thebusybiscuit.slimefun5.api.items.SlimefunItem
    • isFullSetRequired

      public boolean isFullSetRequired()
      Specified by:
      isFullSetRequired in interface io.github.thebusybiscuit.slimefun5.core.attributes.ProtectiveArmor
    • getArmorSetId

      @Nonnull public final io.github.thebusybiscuit.slimefun5.libraries.keys.NamespacedKey getArmorSetId()
      Specified by:
      getArmorSetId in interface io.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

      public static String oxygenLore(int amount, int max)
    • maxUpgrades

      public int maxUpgrades()
    • maxOxygen

      public int maxOxygen()