Cleaned up direction map of IItemRailing

This commit is contained in:
tgame14 2014-04-20 15:13:15 +03:00
parent 7579ea6a45
commit 124192bcdf
2 changed files with 8 additions and 0 deletions

View file

@ -146,6 +146,12 @@ public class NodeRailing extends Node<IItemRailingProvider, GridRailing, Object>
return (VectorWorld) parent.getWorldPos(); return (VectorWorld) parent.getWorldPos();
} }
@Override
public Map<Object, ForgeDirection> getConnectionMap()
{
return new HashMap<Object, ForgeDirection>(this.getConnections());
}
@Override @Override
public IInventory[] getInventoriesNearby() public IInventory[] getInventoriesNearby()
{ {

View file

@ -26,6 +26,8 @@ public interface IItemRailing extends INode
public VectorWorld getWorldPos(); public VectorWorld getWorldPos();
public Map<Object, ForgeDirection> getConnectionMap();
public IInventory[] getInventoriesNearby(); public IInventory[] getInventoriesNearby();
public boolean isLeaf(); public boolean isLeaf();