Package org.spongepowered.api.entity
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
EntityArchetype
s.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.spongepowered.api.data.DataHolderBuilder
DataHolderBuilder.Immutable<H extends DataHolder.Immutable<H>,
B extends DataHolderBuilder.Immutable<H, B>>, DataHolderBuilder.Mutable<H extends DataHolder.Mutable, B extends DataHolderBuilder.Mutable<H, B>> Nested classes/interfaces inherited from interface org.spongepowered.api.data.SerializableDataHolderBuilder
SerializableDataHolderBuilder.Immutable<H extends SerializableDataHolder.Immutable<H>,
B extends SerializableDataHolderBuilder.Immutable<H, B>>, SerializableDataHolderBuilder.Mutable<H extends SerializableDataHolder.Mutable, B extends SerializableDataHolderBuilder.Mutable<H, B>> -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Constructs a newEntityArchetype
.entityData
(DataView view) Sets the desiredEntityType
of the producedEntityArchetype
.Sets all possible bits of information from the providedEntity
.type
(EntityType<?> type) Sets the desiredEntityType
of the producedEntityArchetype
.Methods inherited from interface org.spongepowered.api.data.persistence.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 desiredEntityType
of the producedEntityArchetype
.- Parameters:
type
- The type of entity type- Returns:
- This builder, for chaining
-
entityData
Sets the desiredEntityType
of the producedEntityArchetype
.- Parameters:
view
- The data to set for the archetype- Returns:
- This builder, for chaining
-
build
EntityArchetype build()Constructs a newEntityArchetype
.- Specified by:
build
in interfaceAbstractBuilder<EntityArchetype>
- Returns:
- The new entity archetype
-