Interface Mutator<T>
- Type Parameters:
T
- value type of mutator
- All Superinterfaces:
ComponentProvider
,ConfigurationSerializable
,Copyable
,Shiftable<T>
,ValueProvider<T>
public interface Mutator<T>
extends Shiftable<T>, ConfigurationSerializable, ComponentProvider, Copyable
Interface to implement a mutator to mutate a
PasteMutation
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
Returns a copy of the implementing object.void
invoke
(PasteMutation mutation) Invoke the mutator on a paste mutation.Methods inherited from interface de.eldoria.schematicbrush.brush.config.util.ComponentProvider
descriptor, localizedDescriptor, localizedName, name
Methods inherited from interface org.bukkit.configuration.serialization.ConfigurationSerializable
serialize
Methods inherited from interface de.eldoria.schematicbrush.brush.config.util.Shiftable
shift, shiftable
Methods inherited from interface de.eldoria.schematicbrush.brush.config.util.ValueProvider
refresh, value, value, valueProvider
-
Method Details
-
invoke
Invoke the mutator on a paste mutation. The mutation will be applied on the brush.- Parameters:
mutation
- mutation
-
copy
Description copied from interface:Copyable
Returns a copy of the implementing object.The copy should be by value and should not contain any mutable references to other objects.
-