mirror of
https://github.com/ME1312/SubServers-2.git
synced 2024-09-28 05:17:43 +02:00
92c649eabe
SubServers.Bungee can now link servers to subdata clients via connection address and port number. Since this still has the chance to fail, the `Name` field will appear if no servers were found this way, and will be used the same as before. SubCreator made servers will still have the `Name` value present and filled out for assurance.
48 lines
975 B
Java
48 lines
975 B
Java
package net.ME1312.SubServers.Bungee.Library;
|
|
|
|
import net.ME1312.SubServers.Bungee.Library.Config.YAMLSection;
|
|
import net.ME1312.SubServers.Bungee.Library.Config.YAMLValue;
|
|
|
|
/**
|
|
* Extra Data Handler Layout Class
|
|
*/
|
|
public interface ExtraDataHandler {
|
|
/**
|
|
* Add an extra value to this Object
|
|
*
|
|
* @param handle Handle
|
|
* @param value Value
|
|
*/
|
|
void addExtra(String handle, Object value);
|
|
|
|
/**
|
|
* Determine if an extra value exists
|
|
*
|
|
* @param handle Handle
|
|
* @return Value Status
|
|
*/
|
|
boolean hasExtra(String handle);
|
|
|
|
/**
|
|
* Get an extra value
|
|
*
|
|
* @param handle Handle
|
|
* @return Value
|
|
*/
|
|
YAMLValue getExtra(String handle);
|
|
|
|
/**
|
|
* Get the extra value section
|
|
*
|
|
* @return Extra Value Section
|
|
*/
|
|
YAMLSection getExtra();
|
|
|
|
/**
|
|
* Remove an extra value from this Object
|
|
*
|
|
* @param handle Handle
|
|
*/
|
|
void removeExtra(String handle);
|
|
}
|