@DefaultQualifier(org.checkerframework.checker.nullness.qual.NonNull.class)
Package org.spongepowered.api.state
A fallback API for handling properties of
BlockState
s such that the values that
are not directly supported by the API can still be represented with a
StateProperty
. Common cases where
support only through a StateProperty
is when mods are introduced
to the game, providing custom content and custom states.-
Interface Summary Interface Description BooleanStateProperty Represents a type ofStateProperty
that allows onlyBoolean
of which two possible values may exist:true
andfalse
.EnumStateProperty<E extends java.lang.Enum<E>> Represents a type ofStateProperty
that accepts an unknownEnum
set of values.IntegerStateProperty Represents a type ofStateProperty
that acceptsInteger
based values, usually with a predefined range.State<S extends State<S>> State.Builder<S extends State<S>,B extends State.Builder<S,B>> StateContainer<S extends State<S>> StateMatcher<S extends State<S>> AStateMatcher
that will match variousState
s according to a pre-built list ofStateProperty
s and their values, such that not allStateProperty
s contained in aState
must be matched.StateMatcher.Builder<S extends State<S>,T extends StateContainer<S>> A builder forStateMatcher
s.StateMatcher.Factory Factories for generating builders.StateProperty<T extends java.lang.Comparable<T>> Represents a possible state property in aStateContainer
sState
. -
Class Summary Class Description BooleanStateProperties EnumStateProperties IntegerStateProperties