public class StructureWorldServiceImpl
extends java.lang.Object
implements com.github.shynixn.structureblocklib.api.service.StructureWorldService
| Constructor and Description |
|---|
StructureWorldServiceImpl(com.github.shynixn.structureblocklib.api.service.TypeConversionService conversionService)
Creates a new service with dependencies.
|
| Modifier and Type | Method and Description |
|---|---|
void |
placeStructureToWorld(com.github.shynixn.structureblocklib.api.entity.StructurePlaceMeta meta,
java.lang.Object structure)
Places the blocks in the world defined by the given structure.
|
java.lang.Object |
readStructureFromWorld(com.github.shynixn.structureblocklib.api.entity.StructureReadMeta meta)
Reads the blocks in the world into an NMS Structure definition.
|
public StructureWorldServiceImpl(com.github.shynixn.structureblocklib.api.service.TypeConversionService conversionService)
conversionService - dependency.public void placeStructureToWorld(com.github.shynixn.structureblocklib.api.entity.StructurePlaceMeta meta,
java.lang.Object structure)
throws java.lang.Exception
placeStructureToWorld in interface com.github.shynixn.structureblocklib.api.service.StructureWorldServicemeta - Meta data to describe the placement.structure - NMS structure.java.lang.Exceptionpublic java.lang.Object readStructureFromWorld(com.github.shynixn.structureblocklib.api.entity.StructureReadMeta meta)
throws java.lang.Exception
readStructureFromWorld in interface com.github.shynixn.structureblocklib.api.service.StructureWorldServicemeta - Meta data to describe the block selection.java.lang.Exception