Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MasterBenchOption

Hierarchy

Index

Constructors

constructor

Properties

mods

mods: Mod[]

props

Accessors

mod

  • get mod(): Mod | undefined
  • Returns Mod | undefined

Methods

applicableTo

  • applicableTo(item: Item): ApplicableFlags
  • Can accept only certain itemclasses and in case of vorici options the option actually has to "make sense" (e.g. not 6link of 4socket)

    Parameters

    Returns ApplicableFlags

applyTo

  • applies a chosen craftingbenchoption

    cant overload extended method. so we have to set the chosen option before

    Parameters

    Returns Item

getAvailableMods

  • getAvailableMods(): Mod[]
  • returns a copy of #mods

    we can stick with a shallow copy since Mod are supposed to be immutable

    Returns Mod[]

isApplicableTo

  • isApplicableTo(container: Item, whitelist?: string[]): boolean
  • Parameters

    • container: Item
    • Default value whitelist: string[] = []

    Returns boolean

isModApplicableTo

  • isModApplicableTo(mod: Mod, item: Item): ModApplicableFlags
  • checks if the given mod is applicable to the item

    remember that this doesn't check if the passed mod is the mod of this option

    Parameters

    Returns ModApplicableFlags

isRemoveCraftedModOption

  • isRemoveCraftedModOption(): boolean
  • Returns boolean

modsFor

  • greps mod::applicableTo

    Parameters

    • item: Item
    • Default value whitelist: string[] = []

    Returns Array<GeneratorDetails<Mod>>

Static build

Generated using TypeDoc