public static interface InventoryArchetype.Builder extends ResettableBuilder<InventoryArchetype,InventoryArchetype.Builder>
Compositions of multiple base InventoryArchetypes
are
possible.
Modifier and Type | Method and Description |
---|---|
InventoryArchetype |
build(String id,
String name)
Registers the InventoryArchetype.
|
InventoryArchetype.Builder |
property(InventoryProperty<String,?> property)
Adds an
InventoryProperty to this Archetype. |
default InventoryArchetype.Builder |
title(Text title)
Adds a
InventoryTitle to this Archetype. |
default InventoryArchetype.Builder |
title(Translation title)
Adds a
InventoryTitle to this Archetype. |
InventoryArchetype.Builder |
with(InventoryArchetype... archetypes)
Adds multiple
InventoryArchetype to this Archetype. |
InventoryArchetype.Builder |
with(InventoryArchetype archetype)
Adds an
InventoryArchetype to this Archetype. |
from, reset
default InventoryArchetype.Builder title(Translation title)
InventoryTitle
to this Archetype.title
- The default titledefault InventoryArchetype.Builder title(Text title)
InventoryTitle
to this Archetype.title
- The default titleInventoryArchetype.Builder property(InventoryProperty<String,?> property)
InventoryProperty
to this Archetype.property
- The Property to addInventoryArchetype.Builder with(InventoryArchetype archetype)
InventoryArchetype
to this Archetype.archetype
- The Archetype to addInventoryArchetype.Builder with(InventoryArchetype... archetypes)
InventoryArchetype
to this Archetype.archetypes
- The Archetypes to addInventoryArchetype build(String id, String name)