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:
@@ -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);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -66,7 +66,23 @@
|
|||||||
"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": {
|
||||||
|
|||||||
@@ -66,7 +66,23 @@
|
|||||||
"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": {
|
||||||
|
|||||||
Reference in New Issue
Block a user