Fixed Json Schema

The schema incorrectly listed the array of children in LinkData as an
Array of numbers, not an array of objects with properties.
This commit is contained in:
StevenRS11 2014-06-25 16:17:26 -04:00
parent 0f3d40ba60
commit 96d84ed2fa
4 changed files with 61 additions and 7 deletions

View file

@ -6,14 +6,37 @@ import net.minecraft.world.World;
public interface IDimDoor public interface IDimDoor
{ {
/**
* A function to enter a dim door and traverse its link, called when a player collides with an open door
* @param world
* @param x
* @param y
* @param z
* @param entity
*/
public void enterDimDoor(World world, int x, int y, int z, Entity entity); public void enterDimDoor(World world, int x, int y, int z, Entity entity);
/**
* called when a door is placed to determine how it will place a link
* @param world
* @param x
* @param y
* @param z
*/
public void placeLink(World world, int x, int y, int z); public void placeLink(World world, int x, int y, int z);
public int getDrops(); public int getDrops();
public TileEntity initDoorTE(World world, int x, int y, int z); public TileEntity initDoorTE(World world, int x, int y, int z);
/**
* checks if any of this doors blocks are overlapping with a rift
* @param world
* @param x
* @param y
* @param z
* @return
*/
public boolean isDoorOnRift(World world, int x, int y, int z); public boolean isDoorOnRift(World world, int x, int y, int z);
} }

View file

@ -97,7 +97,6 @@ public class TransTrapdoor extends BlockTrapDoor implements IDimDoor, ITileEntit
{ {
if (!world.isRemote && isTrapdoorOpen(world.getBlockMetadata(x, y, z))) if (!world.isRemote && isTrapdoorOpen(world.getBlockMetadata(x, y, z)))
{ {
DimLink link = PocketManager.getLink(x, y, z, world); DimLink link = PocketManager.getLink(x, y, z, world);
if (link != null) if (link != null)
{ {

View file

@ -64,10 +64,26 @@
"type": "object", "type": "object",
"properties": { "properties": {
"children": { "children": {
"type": "array", "type":"array",
"items":{ "items":{
"type": "number" "type": "object",
} "properties":{
"x": {
"type": "integer"
},
"y": {
"type": "integer"
},
"z": {
"type": "integer"
}
},
"required": [
"x",
"y",
"z"
]
}
}, },
"orientation": { "orientation": {
"type": "number" "type": "number"

View file

@ -64,10 +64,26 @@
"type": "object", "type": "object",
"properties": { "properties": {
"children": { "children": {
"type": "array", "type":"array",
"items":{ "items":{
"type": "number" "type": "object",
} "properties":{
"x": {
"type": "integer"
},
"y": {
"type": "integer"
},
"z": {
"type": "integer"
}
},
"required": [
"x",
"y",
"z"
]
}
}, },
"orientation": { "orientation": {
"type": "number" "type": "number"