MiniMaps
A component that manages multiple MiniMap instances, each associated with a unique world ID. 📕 Tutorial. 📘 API.
Extends
Implements
Properties
enabled
enabled:
boolean
=true
Overrides
list
list:
Map
<string
,MiniMap
>
A collection of MiniMap instances, each associated with a unique world ID.
onAfterUpdate
readonly
onAfterUpdate:Event
<unknown
>
Implementation of
onBeforeUpdate
readonly
onBeforeUpdate:Event
<unknown
>
Implementation of
onDisposed
readonly
onDisposed:Event
<unknown
>
Implementation of
onSetup
readonly
onSetup:Event
<unknown
>
uuid
static
readonly
uuid:"39ad6aad-84c8-4adf-a1e0-7f25313a9e7f"
A unique identifier for the component. This UUID is used to register the component within the Components system.
Methods
create()
create(
world
):MiniMap
Creates a new MiniMap instance associated with the given world. If a MiniMap instance already exists for the given world, an error will be thrown.
Parameters
Parameter | Type | Description |
---|---|---|
world | World | The World for which to create a MiniMap instance. |
Returns
The newly created MiniMap instance.
Throws
Will throw an error if a MiniMap instance already exists for the given world.
delete()
delete(
id
):void
Deletes a MiniMap instance associated with the given world ID. If a MiniMap instance does not exist for the given ID, nothing happens.
Parameters
Parameter | Type | Description |
---|---|---|
id | string | The unique identifier of the world for which to delete the MiniMap instance. |
Returns
void
dispose()
dispose():
void
Returns
void
Implementation of
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
isUpdateable()
isUpdateable():
this is Updateable
Whether is component is Updateable.
Returns
this is Updateable
Inherited from
update()
update():
void
Returns
void