Class IdentifyManager.UnidentifiedItem
java.lang.Object
studio.magemonkey.codex.manager.LoadableItem
studio.magemonkey.divinity.modules.ModuleItem
studio.magemonkey.divinity.modules.LeveledItem
studio.magemonkey.divinity.modules.LimitedItem
studio.magemonkey.divinity.modules.list.identify.IdentifyManager.IdentifyItem
studio.magemonkey.divinity.modules.list.identify.IdentifyManager.UnidentifiedItem
- All Implemented Interfaces:
Tiered
- Enclosing class:
IdentifyManager
-
Field Summary
Fields inherited from class studio.magemonkey.divinity.modules.LimitedItem
chargesByLvlFields inherited from class studio.magemonkey.divinity.modules.LeveledItem
levelMax, levelMin, targetItemLevels, targetItemModules, targetItemTypes, targetTier, tierFields inherited from class studio.magemonkey.divinity.modules.ModuleItem
armorTrim, attributes, color, durability, enchanted, enchants, flags, hash, isUnbreakable, lore, material, modelData, module, name, pluginFields inherited from class studio.magemonkey.codex.manager.LoadableItem
cfg, id, path -
Constructor Summary
ConstructorsConstructorDescriptionUnidentifiedItem(Divinity plugin, studio.magemonkey.codex.config.api.JYML cfg) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.bukkit.inventory.ItemStackbuild(int lvl, int uses) QModuleDrop<?> voidsetResultId(String item) Methods inherited from class studio.magemonkey.divinity.modules.LimitedItem
build, build, create, create, getCharges, getChargesMapMethods inherited from class studio.magemonkey.divinity.modules.LeveledItem
applyLoreReplacements, build, create, doMathExpression, getLore, getMaxLevel, getMinLevel, getModule, getName, getTargetLevelRequirement, getTier, processLore, replacePlaceholders, save, validateLevelMethods inherited from class studio.magemonkey.divinity.modules.ModuleItem
build, build, getColor, getFlags, getMaterial, isUnbreakableMethods inherited from class studio.magemonkey.codex.manager.LoadableItem
getConfig, getFile, getId, save
-
Constructor Details
-
UnidentifiedItem
public UnidentifiedItem(@NotNull Divinity plugin, @NotNull studio.magemonkey.codex.config.api.JYML cfg)
-
-
Method Details
-
getResultModule
-
getResultId
- Returns:
- Returns the final (original/identified) item id. Returns an empty string if no item id was attached.
-
setResultId
-
getApplicableTomeIds
- Returns:
- Returns list with IdentifyTome ids, which are can be applied to this item to identify it.
-
build
@NotNull protected org.bukkit.inventory.ItemStack build(int lvl, int uses) - Overrides:
buildin classLimitedItem
-