Package org.spongepowered.api.entity
Interface EntityArchetype.Builder
-
- All Superinterfaces:
AbstractBuilder<EntityArchetype>
,Buildable.Builder<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 forEntityArchetype
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EntityArchetype
build()
Constructs a newEntityArchetype
.EntityArchetype.Builder
entityData(DataView view)
Sets the desiredEntityType
of the producedEntityArchetype
.EntityArchetype.Builder
from(Entity entity)
Sets all possible bits of information from the providedEntity
.EntityArchetype.Builder
type(EntityType<?> type)
Sets the desiredEntityType
of the producedEntityArchetype
.-
Methods inherited from interface org.spongepowered.api.data.persistence.DataBuilder
build
-
-
-
-
Method Detail
-
from
EntityArchetype.Builder from(Entity entity)
Sets all possible bits of information from the providedEntity
.- Parameters:
entity
- The entity to get information from- Returns:
- This builder, for chaining
-
type
EntityArchetype.Builder type(EntityType<?> type)
Sets the desiredEntityType
of the producedEntityArchetype
.- Parameters:
type
- The type of entity type- Returns:
- This builder, for chaining
-
entityData
EntityArchetype.Builder entityData(DataView view)
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>
- Specified by:
build
in interfaceBuildable.Builder<EntityArchetype>
- Returns:
- The new entity archetype
-
-