- java.lang.Object
-
- aeonics.template.Item<Origin.Type>
-
- aeonics.entity.Origin
-
- aeonics.entity.Origin.Basic
-
- Enclosing class:
- Origin
public static class Origin.Basic extends Origin
This class represents a basic data Origin that has no predefined behavior.As is, the only way to emit data is to call the
Origin.Type.emit(Message, String)
method manually.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Origin.Basic.Type
-
Nested classes/interfaces inherited from class aeonics.entity.Origin
Origin.Background, Origin.Basic, Origin.NetworkClient, Origin.NetworkServer, Origin.Scheduled, Origin.Template
-
-
Constructor Summary
Constructors Constructor Description Basic()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.function.Supplier<? extends Origin.Basic.Type>
defaultCreator()
Returns the default target entity creator.protected java.lang.Class<? extends Origin.Basic.Type>
defaultTarget()
Returns the default target entity type.Origin.Template
template()
Returns the template to build the target entity.
-
-
-
Method Detail
-
defaultTarget
protected java.lang.Class<? extends Origin.Basic.Type> defaultTarget()
Description copied from class:Item
Returns the default target entity type. This method should be implemented by subclasses to specify the target entity type.- Overrides:
defaultTarget
in classOrigin
- Returns:
- the default target entity type
-
defaultCreator
protected java.util.function.Supplier<? extends Origin.Basic.Type> defaultCreator()
Description copied from class:Item
Returns the default target entity creator. This method should be implemented by subclasses to specify the entity creator.- Overrides:
defaultCreator
in classOrigin
- Returns:
- the default target entity creator
-
template
public Origin.Template template()
Description copied from class:Item
Returns the template to build the target entity.This method should ultimately be used to provide the final entity template. Although, it may also provide a partial template that subclassed may complement.
-
-