Package org.spongepowered.api.state
Interface StateMatcher<S extends State<S>>
- All Superinterfaces:
 Predicate<S>
A 
StateMatcher that will match various States
 according to a pre-built list of StatePropertys and their
 values, such that not all StatePropertys contained in a
 State must be matched.- 
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceStateMatcher.Builder<S extends State<S>,T extends StateContainer<S>> A builder forStateMatchers.static interfaceFactories for generating builders. - 
Method Summary
Modifier and TypeMethodDescriptionstatic StateMatcher.Builder<BlockState,BlockType> Creates a newStateMatcher.Builderfor matchingBlockStates.static StateMatcher.Builder<FluidState,FluidType> Creates a newStateMatcher.Builderfor matchingFluidStates.booleanGets atruereturn value if the providedStatesufficiently matches the pre-definedStatePropertyvalues andKeyValueMatchers.default boolean 
- 
Method Details
- 
blockStateMatcherBuilder
Creates a newStateMatcher.Builderfor matchingBlockStates.- Returns:
 - The builder
 
 - 
fluidStateMatcherBuilder
Creates a newStateMatcher.Builderfor matchingFluidStates.- Returns:
 - The builder
 
 - 
matches
Gets atruereturn value if the providedStatesufficiently matches the pre-definedStatePropertyvalues andKeyValueMatchers.- Parameters:
 state- The state in question- Returns:
 - True if the state sufficiently matches
 
 - 
compatibleStates
- Returns:
 - The list of compatible states
 
 - 
test
 
 -