T - the export typepublic interface ScriptExport<T>
ScriptExportRegistry.| Modifier and Type | Method and Description |
|---|---|
T |
get()
Gets the value currently in the export
|
T |
get(Supplier<T> other)
Either gets the value or sets it to another, and returns the same value
|
T |
get(T other)
Either gets the value or sets it to another, and returns the same value
|
boolean |
hasValue()
Gets if this handle has a value
|
String |
id()
Gets the ID of the export
|
ScriptExport<T> |
set(T value)
Sets the value of the export
|
ScriptExport<T> |
setIfAbsent(Supplier<T> value)
Sets the value of the export if a value isn't already present, then return the handle
|
ScriptExport<T> |
setIfAbsent(T value)
Sets the value of the export if a value isn't already present, then return the handle
|
T get(T other)
other - the other valueT get(@Nonnull Supplier<T> other)
other - the other value@Nonnull ScriptExport<T> set(T value)
value - the value to set@Nonnull ScriptExport<T> setIfAbsent(T value)
value - the value to set if absent@Nonnull ScriptExport<T> setIfAbsent(@Nonnull Supplier<T> value)
value - the value to set if absentboolean hasValue()
Copyright © 2017. All rights reserved.