Contents
Interface Op
public interface Op
Interface for operations that can be applied to ModifyEvents to inject
changes to the world generation content.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ArrayCodec<Op> Array codec for Op arraysstatic final Op[]Empty array of Opsstatic final CodecMapCodec<Op> Type dispatch codec for Op implementationsstatic final StringType dispatch key for the Op TYPE_CODEC -
Method Summary
Modifier and TypeMethodDescription<T> voidapply(ModifyEvent<T> event) Generic interface for applying operations to all ModifyEvent types.type()
-
Field Details
-
EMPTY_ARRAY
Empty array of Ops -
TYPE_KEY
-
TYPE_CODEC
Type dispatch codec for Op implementations -
ARRAY_CODEC
Array codec for Op arrays
-
-
Method Details
-
apply
Generic interface for applying operations to all ModifyEvent types.- Type Parameters:
T- The type of content being modified.- Parameters:
event- The ModifyEvent to apply the operation to.- Throws:
Error
-
type
Content.Type type()
-