User Tools

Site Tools


tutorial:structures

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
tutorial:structures [2020/09/11 07:06]
siglong minor improvement
tutorial:structures [2020/09/11 07:07] (current)
siglong Improve readability
Line 103: Line 103:
   private void initializeStructureData(StructureManager structureManager) {   private void initializeStructureData(StructureManager structureManager) {
     Structure structure = structureManager.getStructureOrBlank(this.template);​     Structure structure = structureManager.getStructureOrBlank(this.template);​
-    StructurePlacementData placementData = (new StructurePlacementData()).setRotation(this.rotation).setMirror(BlockMirror.NONE) +    StructurePlacementData placementData = (new StructurePlacementData()) 
-        .addProcessor(BlockIgnoreStructureProcessor.IGNORE_STRUCTURE_BLOCKS);​+      ​.setRotation(this.rotation) 
 +      ​.setMirror(BlockMirror.NONE) 
 +      .addProcessor(BlockIgnoreStructureProcessor.IGNORE_STRUCTURE_BLOCKS);​
     this.setStructureData(structure,​ this.pos, placementData);​     this.setStructureData(structure,​ this.pos, placementData);​
   }   }
tutorial/structures.txt · Last modified: 2020/09/11 07:07 by siglong