Interface StructureTemplate.Builder
- All Superinterfaces:
AbstractBuilder<StructureTemplate>
,Builder<StructureTemplate,
,StructureTemplate.Builder> CopyableBuilder<StructureTemplate,
,StructureTemplate.Builder> DataPackEntryBuilder<Structure,
,StructureTemplate, StructureTemplate.Builder> ResettableBuilder<StructureTemplate,
,StructureTemplate.Builder> ResourceKeyedBuilder<StructureTemplate,
StructureTemplate.Builder>
- Enclosing interface:
StructureTemplate
public static interface StructureTemplate.Builder
extends DataPackEntryBuilder<Structure,StructureTemplate,StructureTemplate.Builder>
-
Method Summary
Modifier and TypeMethodDescriptionfromDataPack
(DataView datapack) Initializes the builder with the data from givenDataView
.Initializes the builder with given structure.pack
(DataPack<StructureTemplate> pack) Sets the data packMethods inherited from interface net.kyori.adventure.builder.AbstractBuilder
build
Methods inherited from interface org.spongepowered.api.util.CopyableBuilder
from
Methods inherited from interface org.spongepowered.api.util.ResourceKeyedBuilder
key
-
Method Details
-
fromValue
Initializes the builder with given structure.- Specified by:
fromValue
in interfaceDataPackEntryBuilder<Structure,
StructureTemplate, StructureTemplate.Builder> - Parameters:
structure
- The structure- Returns:
- This builder, for chaining
-
fromDataPack
Initializes the builder with the data from givenDataView
.DataSerializable.toContainer()
- Specified by:
fromDataPack
in interfaceDataPackEntryBuilder<Structure,
StructureTemplate, StructureTemplate.Builder> - Parameters:
datapack
- The data pack data- Returns:
- This builder, for chaining
- Throws:
IOException
-
pack
Sets the data pack- Specified by:
pack
in interfaceDataPackEntryBuilder<Structure,
StructureTemplate, StructureTemplate.Builder> - Parameters:
pack
- The data pack- Returns:
- This builder, for chaining
-