mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-09-11 12:49:32 +00:00
Change Element and SubElement to public
This commit is contained in:
parent
1836888070
commit
f599b5ca1e
|
@ -32,7 +32,12 @@ public class Element {
|
||||||
|
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
protected Element(String name) {
|
/**
|
||||||
|
* To be used when creating a new Element.
|
||||||
|
* Do not use for comparing Elements.
|
||||||
|
* @param name Name of the new Element.
|
||||||
|
*/
|
||||||
|
public Element(String name) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
ALL_ELEMENTS.put(name.toLowerCase(), this);
|
ALL_ELEMENTS.put(name.toLowerCase(), this);
|
||||||
}
|
}
|
||||||
|
@ -73,7 +78,12 @@ public class Element {
|
||||||
|
|
||||||
private Element parentElement;
|
private Element parentElement;
|
||||||
|
|
||||||
private SubElement(String name, Element parentElement) {
|
/**
|
||||||
|
* To be used when creating a new SubElement.
|
||||||
|
* Do not use for comparing SubElements.
|
||||||
|
* @param name Name of the new SubElement.
|
||||||
|
*/
|
||||||
|
public SubElement(String name, Element parentElement) {
|
||||||
super(name);
|
super(name);
|
||||||
this.parentElement = parentElement;
|
this.parentElement = parentElement;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue