-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
624 additions
and
309 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
146 changes: 11 additions & 135 deletions
146
api/src/main/java/net/thenextlvl/worlds/image/Image.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
api/src/main/java/net/thenextlvl/worlds/image/ImageProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package net.thenextlvl.worlds.image; | ||
|
||
import org.bukkit.World; | ||
import org.jetbrains.annotations.Nullable; | ||
|
||
import java.io.File; | ||
import java.util.List; | ||
|
||
public interface ImageProvider { | ||
|
||
@Nullable | ||
Image load(@Nullable WorldImage image); | ||
|
||
@Nullable | ||
Image get(World world); | ||
|
||
void register(Image image); | ||
|
||
Image getOrCreate(World world); | ||
|
||
Image getOrDefault(World world); | ||
|
||
List<File> findImageFiles(); | ||
|
||
List<File> findWorldFiles(); | ||
|
||
List<WorldImage> findImages(); | ||
|
||
WorldImage createWorldImage(); | ||
|
||
WorldImage of(World world); | ||
|
||
@Nullable | ||
WorldImage of(File file); | ||
} |
Oops, something went wrong.