bc2745a596
Made progress on overhauling and prettifying our commands. There are still more changes to be done for this to be functional. I need to do an intermediate commit because I want to merge in recent changes by Steven.
68 lines
No EOL
2 KiB
Java
68 lines
No EOL
2 KiB
Java
package StevenDimDoors.mod_pocketDim;
|
|
|
|
import java.io.Serializable;
|
|
|
|
public class LinkData implements Serializable
|
|
{
|
|
|
|
public int locXCoord;
|
|
public int locYCoord;
|
|
public int locZCoord;
|
|
|
|
public int destXCoord;
|
|
public int destYCoord;
|
|
public int destZCoord;
|
|
public int numberofChildren;
|
|
public boolean isLocPocket;
|
|
public int linkOrientation;
|
|
|
|
public int destDimID;
|
|
public int locDimID;
|
|
|
|
public boolean exists=false;
|
|
public boolean hasGennedDoor=false;
|
|
|
|
static final long serialVersionUID = 45544342L;
|
|
|
|
|
|
public LinkData()
|
|
{
|
|
this.exists=false;
|
|
}
|
|
|
|
public LinkData(int exitLinkDimID, int exitX, int exitY, int exitZ)
|
|
{
|
|
this.destDimID=exitLinkDimID;
|
|
this.destXCoord=exitX;
|
|
this.destYCoord=exitY;
|
|
this.destZCoord=exitZ;
|
|
}
|
|
|
|
public LinkData(int locationDimID, int destinationDimID, int locationXCoord, int locationYCoord, int locationZCoord, int destinationXCoord, int destinationYCoord, int destinationZCoord, boolean isPocket,int orientation)
|
|
{
|
|
this.exists = true;
|
|
this.locXCoord=locationXCoord;
|
|
this.locYCoord=locationYCoord;
|
|
this.locZCoord=locationZCoord;
|
|
|
|
this.destXCoord=destinationXCoord;
|
|
this.destYCoord=destinationYCoord;
|
|
this.destZCoord=destinationZCoord;
|
|
|
|
this.destDimID=destinationDimID;
|
|
this.locDimID=locationDimID;
|
|
this.isLocPocket=isPocket;
|
|
this.linkOrientation=orientation;
|
|
}
|
|
|
|
public String printLinkData()
|
|
{
|
|
//TODO: Rewrite this to make it prettier. @_@ I'm afraid of changing it to ToString() on the off
|
|
//chance it'll cause explosions and sadness. Damn serialization! ~SenseiKiwi
|
|
|
|
String linkInfo;
|
|
linkInfo = String.valueOf(this.locDimID) + "locDimID "+String.valueOf(this.locXCoord)+":locXCoord "+String.valueOf(this.locYCoord)+":locYCoord "+String.valueOf(this.locZCoord)+":locZCoord ";
|
|
linkInfo.concat("\n"+ String.valueOf(this.destDimID)+"DestDimID "+String.valueOf(this.destXCoord)+":destXCoord "+String.valueOf(this.destYCoord)+":destYCoord "+String.valueOf(this.destZCoord)+":destZCoord ");
|
|
return linkInfo;
|
|
}
|
|
} |