public interface StateValueHost
| Modifier and Type | Method and Description |
|---|---|
StateValue |
getInternalStateValue(State<?> state)
This is an internal inventory-framework API that should not be used from outside of
this library.
|
java.lang.Object |
getRawStateValue(State<?> state)
Returns the internal value of a state.
|
@UnmodifiableView java.util.Map<java.lang.Long,StateValue> |
getStateValues()
This is an internal inventory-framework API that should not be used from outside of
this library.
|
StateValue |
getUninitializedStateValue(long stateId)
This is an internal inventory-framework API that should not be used from outside of
this library.
|
void |
initializeState(long id,
@NotNull StateValue value)
Initializes the value of a state in this value host.
|
void |
updateState(long id,
java.lang.Object value)
Updates the value of an initialized state in this value host.
|
void |
watchState(long id,
StateWatcher listener) |
@UnmodifiableView java.util.Map<java.lang.Long,StateValue> getStateValues()
This is an internal inventory-framework API that should not be used from outside of this library. No compatibility guarantees are provided.
@ApiStatus.Internal StateValue getUninitializedStateValue(long stateId)
This is an internal inventory-framework API that should not be used from outside of this library. No compatibility guarantees are provided.
@ApiStatus.Internal java.lang.Object getRawStateValue(State<?> state)
This is an internal inventory-framework API that should not be used from outside of this library. No compatibility guarantees are provided.
state - The target state.@ApiStatus.Internal StateValue getInternalStateValue(State<?> state)
This is an internal inventory-framework API that should not be used from outside of this library. No compatibility guarantees are provided.
@ApiStatus.Internal
void initializeState(long id,
@NotNull
@NotNull StateValue value)
This is an internal inventory-framework API that should not be used from outside of this library. No compatibility guarantees are provided.
id - The state id.value - The initial state value.@ApiStatus.Internal
void updateState(long id,
java.lang.Object value)
This is an internal inventory-framework API that should not be used from outside of this library. No compatibility guarantees are provided.
id - The state id.value - The new state value.@ApiStatus.Internal
void watchState(long id,
StateWatcher listener)