made ItemRailingTransfer accept node instead of Part
This commit is contained in:
parent
d5648b2fba
commit
dff9049ea2
3 changed files with 8 additions and 2 deletions
|
@ -22,7 +22,7 @@ public class ItemRailingTransfer implements IItemRailingTransfer
|
|||
{
|
||||
this.stack = stack.copy();
|
||||
this.color = EnumColor.ORANGE;
|
||||
this.railing = railing;
|
||||
this.railing = railing.getNode();
|
||||
}
|
||||
|
||||
public ItemRailingTransfer(Item item, PartRailing railing)
|
||||
|
|
|
@ -29,6 +29,7 @@ public class NodeRailing extends Node<PartRailing, GridRailing, NodeRailing> imp
|
|||
{
|
||||
super(parent);
|
||||
this.itemNodeSet = new HashSet<IItemRailingTransfer>();
|
||||
this.color = null;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -38,7 +38,12 @@ public class PartRailing extends PartFramedConnection<PartRailing.EnumRailing, I
|
|||
DEFAULT, EXTENTION;
|
||||
}
|
||||
|
||||
// default is NULL
|
||||
public NodeRailing getNode()
|
||||
{
|
||||
return node;
|
||||
}
|
||||
|
||||
// default is NULL
|
||||
private NodeRailing node;
|
||||
|
||||
public PartRailing ()
|
||||
|
|
Loading…
Reference in a new issue