Interface EntityArchetype.Builder
- All Superinterfaces:
AbstractBuilder<EntityArchetype>, Builder<EntityArchetype, EntityArchetype.Builder>, CopyableBuilder<EntityArchetype, EntityArchetype.Builder>, DataBuilder<EntityArchetype>, DataHolderBuilder<EntityArchetype, EntityArchetype.Builder>, DataHolderBuilder.Mutable<EntityArchetype, EntityArchetype.Builder>, ResettableBuilder<EntityArchetype, EntityArchetype.Builder>, SerializableDataHolderBuilder<EntityArchetype, EntityArchetype.Builder>, SerializableDataHolderBuilder.Mutable<EntityArchetype, EntityArchetype.Builder>
- Enclosing interface:
EntityArchetype
public static interface EntityArchetype.Builder
extends SerializableDataHolderBuilder.Mutable<EntityArchetype, EntityArchetype.Builder>
A builder for
EntityArchetypes.-
Nested Class Summary
Nested classes/interfaces inherited from interface DataHolderBuilder
DataHolderBuilder.Immutable<H,B>, DataHolderBuilder.Mutable<H, B> Nested classes/interfaces inherited from interface SerializableDataHolderBuilder
SerializableDataHolderBuilder.Immutable<H,B>, SerializableDataHolderBuilder.Mutable<H, B> -
Method Summary
Modifier and TypeMethodDescriptionbuild()Constructs a newEntityArchetype.entityData(DataView view) Sets the desiredEntityTypeof the producedEntityArchetype.Sets all possible bits of information from the providedEntity.type(EntityType<?> type) Sets the desiredEntityTypeof the producedEntityArchetype.Methods inherited from interface DataBuilder
build
-
Method Details
-
from
Sets all possible bits of information from the providedEntity.- Parameters:
entity- The entity to get information from- Returns:
- This builder, for chaining
-
type
Sets the desiredEntityTypeof the producedEntityArchetype.- Parameters:
type- The type of entity type- Returns:
- This builder, for chaining
-
entityData
Sets the desiredEntityTypeof the producedEntityArchetype.- Parameters:
view- The data to set for the archetype- Returns:
- This builder, for chaining
-
build
EntityArchetype build()Constructs a newEntityArchetype.- Specified by:
buildin interfaceAbstractBuilder<EntityArchetype>- Returns:
- The new entity archetype
-