mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2024-10-02 17:47:41 +02:00
Started adding portal data
This commit is contained in:
parent
e7d39d1103
commit
99c595ceeb
@ -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