mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2024-11-29 14:05:11 +01:00
Started adding portal data
This commit is contained in:
parent
9d0f083e4f
commit
a8ce8e7d42
@ -1,7 +1,38 @@
|
||||
package com.sekwah.advancedportals.core.api.portal;
|
||||
|
||||
import com.sekwah.advancedportals.core.data.PortalLocation;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author sekwah41
|
||||
*/
|
||||
public class AdvancedPortal {
|
||||
private PortalLocation maxLoc;
|
||||
|
||||
private PortalLocation minLoc;
|
||||
|
||||
private HashMap<String, String> args = new HashMap<>();
|
||||
|
||||
public AdvancedPortal(PortalLocation maxLoc, PortalLocation minLoc) {
|
||||
this.maxLoc = maxLoc;
|
||||
this.minLoc = minLoc;
|
||||
}
|
||||
|
||||
public PortalLocation getMaxLoc() {
|
||||
return this.maxLoc;
|
||||
}
|
||||
|
||||
public PortalLocation getMinLoc() {
|
||||
return this.minLoc;
|
||||
}
|
||||
|
||||
public String getArg(String argName) {
|
||||
return this.args.get(argName);
|
||||
}
|
||||
|
||||
public void setArg(String argName, String argValue) {
|
||||
this.args.put(argName, argValue);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user