Started adding portal data

This commit is contained in:
sekwah 2018-01-25 21:04:30 +00:00
parent e7d39d1103
commit 99c595ceeb

View File

@ -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);
}
}