Commits
coll1234567 authored and md_5 committed 2e3024a9b07
1 + | package org.bukkit.generator.structure; |
2 + | |
3 + | import java.util.Collection; |
4 + | import org.bukkit.persistence.PersistentDataHolder; |
5 + | import org.bukkit.util.BoundingBox; |
6 + | import org.jetbrains.annotations.NotNull; |
7 + | |
8 + | /** |
9 + | * Represents a structure placed in the world. |
10 + | * |
11 + | * @see StructurePiece |
12 + | */ |
13 + | public interface GeneratedStructure extends PersistentDataHolder { |
14 + | |
15 + | /** |
16 + | * Gets the bounding box of this placed structure. |
17 + | * |
18 + | * @return bounding box of this placed structure |
19 + | */ |
20 + | |
21 + | public BoundingBox getBoundingBox(); |
22 + | |
23 + | /** |
24 + | * Gets the structure that this PlacedStructure represents. |
25 + | * |
26 + | * @return the structure that this PlacedStructure represents |
27 + | */ |
28 + | |
29 + | public Structure getStructure(); |
30 + | |
31 + | /** |
32 + | * Gets all the {@link StructurePiece} that make up this PlacedStructure. |
33 + | * |
34 + | * @return a collection of all the StructurePieces |
35 + | */ |
36 + | |
37 + | public Collection<StructurePiece> getPieces(); |
38 + | } |