FastModelPickers
A component that manages a FastModelPicker for each world and automatically disposes it when its corresponding world is disposed.
Extends
Implements
Properties
enabled
enabled:
boolean=true
Overrides
list
list:
Map<string,FastModelPicker>
A Map that stores FastModelPicker instances for each world. The key is the world's UUID, and the value is the corresponding FastModelPicker instance.
onDisposed
onDisposed:
Event<unknown>
Implementation of
uuid
staticreadonlyuuid:"4a82430c-7ff2-49ea-9401-60807502dad6"
A unique identifier for the component. This UUID is used to register the component within the Components system.
Methods
delete()
delete(
world):void
Deletes the FastModelPicker instance associated with the given world. If a FastModelPicker instance exists for the given world, it will be disposed and removed from the list.
Parameters
| Parameter | Type | Description |
|---|---|---|
world | World | The world for which to delete the FastModelPicker instance. |
Returns
void
dispose()
dispose():
void
Returns
void
Implementation of
get()
get(
world):FastModelPicker
Retrieves a FastModelPicker instance for the given world. If a FastModelPicker instance already exists for the world, it will be returned. Otherwise, a new FastModelPicker instance will be created and added to the list.
Parameters
| Parameter | Type | Description |
|---|---|---|
world | World | The world for which to retrieve or create a FastModelPicker instance. |
Returns
The FastModelPicker instance for the given world.
isConfigurable()
isConfigurable():
this is Configurable<any, any>
Whether is component is Configurable.
Returns
this is Configurable<any, any>
Inherited from
isDisposeable()
isDisposeable():
this is Disposable
Whether is component is Disposable.
Returns
this is Disposable
Inherited from
isHideable()
isHideable():
this is Hideable
Whether is component is Hideable.
Returns
this is Hideable
Inherited from
isResizeable()
isResizeable():
this is Resizeable
Whether is component is Resizeable.
Returns
this is Resizeable
Inherited from
isSerializable()
isSerializable():
this is Serializable<any, Record<string, any>>
Whether is component is Serializable.
Returns
this is Serializable<any, Record<string, any>>
Inherited from
isUpdateable()
isUpdateable():
this is Updateable
Whether is component is Updateable.
Returns
this is Updateable