use of org.spongepowered.common.data.MemoryDataContainer in project SpongeCommon by SpongePowered.
the class SpongeSchematicBuilder method build.
@Override
public Schematic build() throws IllegalArgumentException {
if (this.volume instanceof SpongeArchetypeVolume) {
final SpongeArchetypeVolume archetypeVolume = (SpongeArchetypeVolume) this.volume;
final Vector3i start = archetypeVolume.min();
final Vector3i blockSize = archetypeVolume.size();
return new SpongeSchematic(start, blockSize, archetypeVolume, this.metadata == null ? new MemoryDataContainer() : this.metadata);
}
throw new IllegalThreadStateException("Unimplemented");
}
Aggregations