|
| 1 | +/* |
| 2 | + * AsyncWorldEdit API |
| 3 | + * Copyright (c) 2015, SBPrime <https://github.com/SBPrime/> |
| 4 | + * Copyright (c) AsyncWorldEdit API contributors |
| 5 | + * |
| 6 | + * All rights reserved. |
| 7 | + * |
| 8 | + * Redistribution and use in source and binary forms, with or without |
| 9 | + * modification, are permitted free of charge provided that the following |
| 10 | + * conditions are met: |
| 11 | + * |
| 12 | + * 1. Redistributions of source code must retain the above copyright notice, this |
| 13 | + * list of conditions and the following disclaimer. |
| 14 | + * 2. Redistributions in binary form must reproduce the above copyright notice, |
| 15 | + * this list of conditions and the following disclaimer in the documentation |
| 16 | + * and/or other materials provided with the distribution, |
| 17 | + * 3. Redistributions of source code, with or without modification, in any form |
| 18 | + * other then free of charge is not allowed, |
| 19 | + * 4. Redistributions in binary form in any form other then free of charge is |
| 20 | + * not allowed. |
| 21 | + * 5. Any derived work based on or containing parts of this software must reproduce |
| 22 | + * the above copyright notice, this list of conditions and the following |
| 23 | + * disclaimer in the documentation and/or other materials provided with the |
| 24 | + * derived work. |
| 25 | + * 6. The original author of the software is allowed to change the license |
| 26 | + * terms or the entire license of the software as he sees fit. |
| 27 | + * 7. The original author of the software is allowed to sublicense the software |
| 28 | + * or its parts using any license terms he sees fit. |
| 29 | + * |
| 30 | + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
| 31 | + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
| 32 | + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| 33 | + * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR |
| 34 | + * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| 35 | + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 36 | + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
| 37 | + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 38 | + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
| 39 | + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 40 | + */ |
| 41 | +package org.primesoft.asyncworldedit.api; |
| 42 | + |
| 43 | +import java.util.UUID; |
| 44 | + |
| 45 | +/** |
| 46 | + * World wrapper class |
| 47 | + * @author SBPrime |
| 48 | + */ |
| 49 | +public interface IWorld { |
| 50 | + /** |
| 51 | + * Get the world UUID |
| 52 | + * @return |
| 53 | + */ |
| 54 | + UUID getUID(); |
| 55 | + |
| 56 | + |
| 57 | + /** |
| 58 | + * Get the world name |
| 59 | + * @return |
| 60 | + */ |
| 61 | + String getName(); |
| 62 | + |
| 63 | + /** |
| 64 | + * Regenerate world chunk |
| 65 | + * @param cx |
| 66 | + * @param cz |
| 67 | + */ |
| 68 | + void regenerateChunk(int cx, int cz); |
| 69 | + |
| 70 | + |
| 71 | + /** |
| 72 | + * Tests if the chunk is loaded |
| 73 | + * @param cx |
| 74 | + * @param cz |
| 75 | + * @return |
| 76 | + */ |
| 77 | + boolean isChunkLoaded(int cx, int cz); |
| 78 | + |
| 79 | + /** |
| 80 | + * Get chunk at location |
| 81 | + * @param cx |
| 82 | + * @param cz |
| 83 | + * @return |
| 84 | + */ |
| 85 | + IChunk getChunkAt(int cx, int cz); |
| 86 | +} |
0 commit comments