public static interface EntityArchetype.Builder extends DataBuilder<EntityArchetype>
EntityArchetype
s.Modifier and Type | Method and Description |
---|---|
EntityArchetype |
build()
Constructs a new
EntityArchetype . |
EntityArchetype.Builder |
entityData(DataView view)
Sets the desired
EntityType of the produced EntityArchetype . |
EntityArchetype.Builder |
from(Entity entity)
Sets all possible bits of information from the provided
Entity . |
EntityArchetype.Builder |
from(EntityArchetype value)
Resets this builder to the values of the given built object.
|
EntityArchetype.Builder |
reset()
Resets this builder to a "default" state such that there is no
remaining data to set.
|
<E,V extends BaseValue<E>> |
set(Key<V> key,
E value)
Sets the desired
EntityType of the produced EntityArchetype . |
<E,V extends BaseValue<E>> |
set(V value)
Sets the desired
EntityType of the produced EntityArchetype . |
EntityArchetype.Builder |
setData(DataManipulator<?,?> manipulator)
Sets the desired
EntityType of the produced EntityArchetype . |
EntityArchetype.Builder |
type(EntityType type)
Sets the desired
EntityType of the produced EntityArchetype . |
build
EntityArchetype.Builder reset()
ResettableBuilder
reset
in interface DataBuilder<EntityArchetype>
reset
in interface ResettableBuilder<EntityArchetype,DataBuilder<EntityArchetype>>
EntityArchetype.Builder from(EntityArchetype value)
ResettableBuilder
from
in interface DataBuilder<EntityArchetype>
from
in interface ResettableBuilder<EntityArchetype,DataBuilder<EntityArchetype>>
value
- The built objectEntityArchetype.Builder from(Entity entity)
Entity
.entity
- The entity to get information fromEntityArchetype.Builder type(EntityType type)
EntityType
of the produced EntityArchetype
.type
- The type of entity typeEntityArchetype.Builder entityData(DataView view)
EntityType
of the produced EntityArchetype
.view
- The data to set for the archetypeEntityArchetype.Builder setData(DataManipulator<?,?> manipulator)
EntityType
of the produced EntityArchetype
.manipulator
- The manipulator to set for the archetype<E,V extends BaseValue<E>> EntityArchetype.Builder set(V value)
EntityType
of the produced EntityArchetype
.value
- The type of entity type<E,V extends BaseValue<E>> EntityArchetype.Builder set(Key<V> key, E value)
EntityType
of the produced EntityArchetype
.key
- The keyvalue
- The value to setEntityArchetype build()
EntityArchetype
.