Class HazmatArmorPiece
java.lang.Object
io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
io.github.thebusybiscuit.slimefun4.implementation.items.armor.SlimefunArmorPiece
io.github.thebusybiscuit.slimefun4.implementation.items.armor.HazmatArmorPiece
- All Implemented Interfaces:
ItemAttribute
,Placeable
,ProtectiveArmor
Represents 1
SlimefunArmorPiece
of the Hazmat armor set.
One of the very few utilisations of ProtectiveArmor
.- Author:
- Linox
- See Also:
-
Field Summary
Fields inherited from class io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
addon, disenchantable, enchantable, hidden, recipeOutput, useableInWorkbench
-
Constructor Summary
ConstructorDescriptionHazmatArmorPiece
(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe, PotionEffect[] effects) -
Method Summary
Modifier and TypeMethodDescriptionThis returns the armor setNamespacedKey
of thisSlimefunArmorPiece
.boolean
This returns whether the full set is required forPlayer
's protection on assignedProtectionType
damages.Methods inherited from class io.github.thebusybiscuit.slimefun4.implementation.items.armor.SlimefunArmorPiece
getPotionEffects
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, preRegister, 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
-
HazmatArmorPiece
@ParametersAreNonnullByDefault public HazmatArmorPiece(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe, PotionEffect[] effects)
-
-
Method Details
-
getProtectionTypes
Description copied from interface:ProtectiveArmor
- Specified by:
getProtectionTypes
in interfaceProtectiveArmor
- Returns:
- The
ProtectionType
s.
-
isFullSetRequired
public boolean isFullSetRequired()Description copied from interface:ProtectiveArmor
This returns whether the full set is required forPlayer
's protection on assignedProtectionType
damages.- Specified by:
isFullSetRequired
in interfaceProtectiveArmor
- Returns:
- Whether or not he full set is required.
-
getArmorSetId
Description copied from interface:ProtectiveArmor
This returns the armor setNamespacedKey
of thisSlimefunArmorPiece
.- Specified by:
getArmorSetId
in interfaceProtectiveArmor
- Returns:
- The set
NamespacedKey
,null
if none is found.
-