| Package | Description |
|---|---|
| me.lucko.helper.js.exports |
| Modifier and Type | Method and Description |
|---|---|
<T> ScriptExport<T> |
ScriptExportRegistry.handle(String key)
Produces and returns a script export handle
|
default <T> ScriptExport<T> |
ScriptExportRegistry.handle(String key,
Supplier<T> defaultValue)
Produces and returns a script export handle
|
default <T> ScriptExport<T> |
ScriptExportRegistry.handle(String key,
T defaultValue)
Produces and returns a script export handle
|
default <T> ScriptExport<T> |
ScriptExportRegistry.set(String key,
T value)
Gets or initializes a new export, and sets it to the given value
|
ScriptExport<T> |
ScriptExport.set(T value)
Sets the value of the export
|
ScriptExport<T> |
ScriptExport.setIfAbsent(Supplier<T> value)
Sets the value of the export if a value isn't already present, then return the handle
|
ScriptExport<T> |
ScriptExport.setIfAbsent(T value)
Sets the value of the export if a value isn't already present, then return the handle
|
| Modifier and Type | Method and Description |
|---|---|
Collection<ScriptExport<?>> |
ScriptExportRegistry.getExports()
Gets all exports in this registry
|
Copyright © 2017. All rights reserved.