-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Beginning work towards new config structure.
- Loading branch information
Showing
28 changed files
with
775 additions
and
539 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
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
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
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
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
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
26 changes: 26 additions & 0 deletions
26
realmines-api/src/main/java/joserodpt/realmines/api/mine/RMBlockSet.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,26 @@ | ||
package joserodpt.realmines.api.mine; | ||
|
||
import joserodpt.realmines.api.mine.components.items.MineItem; | ||
import org.bukkit.Material; | ||
|
||
import java.util.Map; | ||
|
||
public class RMBlockSet { | ||
|
||
String name; | ||
Map<Material, MineItem> items; | ||
|
||
public RMBlockSet(String name, Map<Material, MineItem> items) { | ||
this.name = name; | ||
this.items = items; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public Map<Material, MineItem> getItems() { | ||
return items; | ||
} | ||
|
||
} |
20 changes: 20 additions & 0 deletions
20
realmines-api/src/main/java/joserodpt/realmines/api/mine/RMFailedToLoadException.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,20 @@ | ||
package joserodpt.realmines.api.mine; | ||
|
||
public class RMFailedToLoadException extends Exception { | ||
private final String mineName; | ||
private final String reason; | ||
|
||
public RMFailedToLoadException(String mineName, String reason) { | ||
super("RealMines '" + mineName + "' did not load properly: " + reason); | ||
this.mineName = mineName; | ||
this.reason = reason; | ||
} | ||
|
||
public String getMineName() { | ||
return mineName; | ||
} | ||
|
||
public String getReason() { | ||
return reason; | ||
} | ||
} |
Oops, something went wrong.