Package org.spongepowered.api.data
Interface DataManipulator.Mutable.Factory
-
- Enclosing interface:
- DataManipulator.Mutable
public static interface DataManipulator.Mutable.Factory
A factory to create newDataManipulator.Mutable
manipulators.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DataManipulator.Mutable
of()
Creates an empty mutable manipulator that can be used as a sink accepting new values.DataManipulator.Mutable
of(Iterable<? extends Value<?>> values)
Creates a new manipulator with all the provided values.DataManipulator.Mutable
of(ValueContainer valueContainer)
Creates a new manipulator with all the possible values from the givenValueContainer
.
-
-
-
Method Detail
-
of
DataManipulator.Mutable of()
Creates an empty mutable manipulator that can be used as a sink accepting new values.- Returns:
- A new empty manipulator
-
of
DataManipulator.Mutable of(Iterable<? extends Value<?>> values)
Creates a new manipulator with all the provided values.- Parameters:
values
- the values to populate- Returns:
- The new manipulator with the provided values
-
of
DataManipulator.Mutable of(ValueContainer valueContainer)
Creates a new manipulator with all the possible values from the givenValueContainer
.- Parameters:
valueContainer
- the value container containing all values- Returns:
- The new manipulator with all values from the given container
-
-