Package org.spongepowered.api.state
Interface StateContainer<S extends State<S>>
public interface StateContainer<S extends State<S>>
-
Method Summary
Modifier and TypeMethodDescriptionfindStateProperty
(String name) Attempts to retrieve theStateProperty
instance associated with thisStateContainer
by name.
-
Method Details
-
validStates
-
defaultState
S defaultState() -
stateProperties
Collection<StateProperty<?>> stateProperties() -
findStateProperty
Attempts to retrieve theStateProperty
instance associated with thisStateContainer
by name. If there is noStateProperty
available,Optional.empty()
is returned.- Parameters:
name
- The state property name- Returns:
- The state property, if available
-