- currently possible to export a laby into minetest - start of a lua content parser to import .we into lab
39 lines
645 B
Java
39 lines
645 B
Java
package org.artisanlogiciel.games.minetest;
|
|
|
|
public class Node {
|
|
int x;
|
|
int y;
|
|
int z;
|
|
Material material;
|
|
|
|
public Node(int x, int y, int z, Material material) {
|
|
this.x = x;
|
|
this.y = y;
|
|
this.z = z;
|
|
this.material = material;
|
|
}
|
|
|
|
public Node(int x, int y, int z) {
|
|
this.x = x;
|
|
this.y = y;
|
|
this.z = z;
|
|
this.material = Material.DEFAULT;
|
|
}
|
|
|
|
public int getX() {
|
|
return x;
|
|
}
|
|
|
|
public int getY() {
|
|
return y;
|
|
}
|
|
|
|
public int getZ() {
|
|
return z;
|
|
}
|
|
|
|
public Material getMaterial() {
|
|
return material;
|
|
}
|
|
}
|