Preparing search index...
The search index is not available
Wayward Types Viewer | 2.14.0-beta.dev.20240903.1
Wayward Types Viewer
utilities/random/generators/specific/RandomItem
default
Class default
Hierarchy
default
<
(
ItemType
|
ItemTypeGroup
)
[]
>
default
Index
Constructors
constructor
Properties
exclude
magical
random?
value?
Methods
[SYMBOL_
CLONE]
clone
create
get
Random
get
Random
Instance
set
Excluded
set
Magical
set
Quality
Constructors
constructor
new default
(
)
:
default
Returns
default
new default
(
random
:
RandomInstance
|
RandomReference
,
...
options
:
(
ItemType
|
ItemTypeGroup
)
[]
)
:
default
Parameters
random:
RandomInstance
|
RandomReference
Rest
...
options:
(
ItemType
|
ItemTypeGroup
)
[]
Returns
default
Properties
exclude
exclude
:
(
ItemType
|
ItemTypeGroup
)
[]
= []
magical
magical
:
number
= 0
Optional
random
random
?:
RandomInstance
|
RandomReference
Optional
value
value
?:
(
ItemType
|
ItemTypeGroup
)
[]
Methods
[SYMBOL_
CLONE]
[SYMBOL_
CLONE]
(
clone
:
(
<
T
>
(
obj
:
T
)
=>
T
)
)
:
default
Parameters
clone:
(
<
T
>
(
obj
:
T
)
=>
T
)
<
T
>
(
obj
:
T
)
:
T
Type Parameters
T
Parameters
obj:
T
Returns
T
Returns
default
Protected
clone
clone
(
clone
:
(
<
T
>
(
obj
:
T
)
=>
T
)
)
:
readonly
[
undefined
|
RandomInstance
|
RandomReference
,
undefined
|
(
ItemType
|
ItemTypeGroup
)
[]
]
Parameters
clone:
(
<
T
>
(
obj
:
T
)
=>
T
)
<
T
>
(
obj
:
T
)
:
T
Type Parameters
T
Parameters
obj:
T
Returns
T
Returns
readonly
[
undefined
|
RandomInstance
|
RandomReference
,
undefined
|
(
ItemType
|
ItemTypeGroup
)
[]
]
create
create
(
island
:
default
, container
:
IContainer
)
:
undefined
|
default
Parameters
island:
default
container:
IContainer
Returns
undefined
|
default
get
Random
get
Random
(
)
:
Random
<
LegacySeededGenerator
|
PCGSeededGenerator
>
Returns
Random
<
LegacySeededGenerator
|
PCGSeededGenerator
>
get
Random
Instance
get
Random
Instance
(
)
:
undefined
|
RandomInstance
Returns
undefined
|
RandomInstance
set
Excluded
set
Excluded
(
...
items
:
(
ItemType
|
ItemTypeGroup
)
[]
)
:
default
Parameters
Rest
...
items:
(
ItemType
|
ItemTypeGroup
)
[]
Returns
default
set
Magical
set
Magical
(
amount
:
number
)
:
default
Parameters
amount:
number
Returns
default
set
Quality
set
Quality
(
quality
:
Quality
)
:
default
Parameters
quality:
Quality
Returns
default
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Navigation
Modding Guide
Module Index
Common Modules
@Register
IDoodadDescription
IItemDescription
ITerrainDescription
ITileEventDescription
ICreatureDescription
In This Module
default
constructor
exclude
magical
random?
value?
[SYMBOL_
CLONE]
clone
create
get
Random
get
Random
Instance
set
Excluded
set
Magical
set
Quality
Generated using
TypeDoc