|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.amoebaman.kitmaster.utilities.S_Location
public class S_Location
Contains methods for converting Locations to and from saveable forms.
| Constructor Summary | |
|---|---|
S_Location()
|
|
| Method Summary | |
|---|---|
static org.bukkit.Location |
configLoad(org.bukkit.configuration.ConfigurationSection config)
Loads a Location from a ConfigurationSection, taking its values from fields in the section. |
static void |
configSave(org.bukkit.Location loc,
org.bukkit.configuration.ConfigurationSection config)
Saves a Location to a ConfigurationSection. |
static org.bukkit.Location |
stringLoad(java.lang.String str)
Loads a Location from a String. |
static java.lang.String |
stringSave(org.bukkit.Location loc)
Saves a Location to a String. |
static java.lang.String |
toString(org.bukkit.Location loc)
Gets a more user-friendly String version of a Location; |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public S_Location()
| Method Detail |
|---|
public static void configSave(org.bukkit.Location loc,
org.bukkit.configuration.ConfigurationSection config)
Location to a ConfigurationSection. This method will define fields within the section that describe its values.
loc - The location to save.config - The section to save to.public static org.bukkit.Location configLoad(org.bukkit.configuration.ConfigurationSection config)
Location from a ConfigurationSection, taking its values from fields in the section. Values not defined will be set to their corresponding values from the origin location (0, 64, 0).
config - The section to load from.
public static java.lang.String stringSave(org.bukkit.Location loc)
Location to a String.
loc - The Location to save.
public static org.bukkit.Location stringLoad(java.lang.String str)
Location from a String. If an error occurs while parsing the string, the origin location (0, 64, 0) will be returned.
str - The string to load from.
public static java.lang.String toString(org.bukkit.Location loc)
Location;
loc - The location.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||