Initial Commit
This commit is contained in:
parent
d15d9ac848
commit
6c22a5b00f
285 changed files with 12708 additions and 0 deletions
38
common/thaumcraft/api/aura/AuraNode.java
Normal file
38
common/thaumcraft/api/aura/AuraNode.java
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
package thaumcraft.api.aura;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import thaumcraft.api.ObjectTags;
|
||||
|
||||
public class AuraNode implements Serializable {
|
||||
//key
|
||||
public int key;
|
||||
|
||||
//aura
|
||||
public short level;
|
||||
public short baseLevel;
|
||||
public ObjectTags flux = new ObjectTags();
|
||||
public EnumNodeType type;
|
||||
|
||||
//location
|
||||
public int dimension;
|
||||
public double xPos;
|
||||
public double yPos;
|
||||
public double zPos;
|
||||
public boolean locked;
|
||||
|
||||
public AuraNode(int key, short lvl, EnumNodeType type, int dim, int x, int y, int z) {
|
||||
this.key = key;
|
||||
this.level = lvl;
|
||||
this.baseLevel = lvl;
|
||||
this.type = type;
|
||||
this.dimension = dim;
|
||||
this.xPos = x+.5d;
|
||||
this.yPos = y+.5d;
|
||||
this.zPos = z+.5d;
|
||||
}
|
||||
|
||||
public AuraNode() {
|
||||
}
|
||||
|
||||
}
|
||||
21
common/thaumcraft/api/aura/EnumNodeType.java
Normal file
21
common/thaumcraft/api/aura/EnumNodeType.java
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
package thaumcraft.api.aura;
|
||||
|
||||
|
||||
|
||||
public enum EnumNodeType {
|
||||
NORMAL,
|
||||
PURE,
|
||||
DARK,
|
||||
UNSTABLE;
|
||||
|
||||
public static final EnumNodeType[] VALID_TYPES = {NORMAL,PURE,DARK,UNSTABLE};
|
||||
|
||||
public static EnumNodeType getType(int id)
|
||||
{
|
||||
if (id >= 0 && id < VALID_TYPES.length)
|
||||
{
|
||||
return VALID_TYPES[id];
|
||||
}
|
||||
return NORMAL;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue