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 revisionPrevious revision
Next revisionBoth sides next revision
tutorial:structures [2020/09/11 07:06] – minor improvement siglongtutorial:structures [2020/09/11 07:07] – Improve readability siglong
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: 2022/11/05 12:06 by jab125