Class StructureBuilder
java.lang.Object
nl.pim16aap2.animatedarchitecture.core.structures.StructureBuilder
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interface -
Method Summary
Modifier and TypeMethodDescriptionbuilder(StructureType type) Creates a new guided builder for aStructure.builder(StructureType type, @Nullable IStructureComponent component) Creates a new guided builder for aStructure.
-
Method Details
-
builder
Creates a new guided builder for aStructure.This method is a shortcut for
builder(StructureType, IStructureComponent)with the component set to a new instance provided byStructureType.newComponent().- Parameters:
type- The type of structure to create.- Returns:
- A new guided builder.
-
builder
public StructureBuilder.IBuilderUID builder(StructureType type, @Nullable IStructureComponent component) Creates a new guided builder for aStructure.- Parameters:
type- The type of structure to create.component- The component of the structure to create. This is likely to beStructureType.newComponent().If the component is
null, the value will be provided byStructureType.newComponent().- Returns:
- A new guided builder.
-