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 theStatePropertyinstance associated with thisStateContainerby name. 
- 
Method Details
- 
validStates
 - 
defaultState
S defaultState() - 
stateProperties
Collection<StateProperty<?>> stateProperties() - 
findStateProperty
Attempts to retrieve theStatePropertyinstance associated with thisStateContainerby name. If there is noStatePropertyavailable,Optional.empty()is returned.- Parameters:
 name- The state property name- Returns:
 - The state property, if available
 
 
 -