public class DefaultInserterSource extends Object implements InserterSource
InserterSource
.Constructor and Description |
---|
DefaultInserterSource(DockStation parent,
StationDropItem item)
Creates a new
InserterSource . |
Modifier and Type | Method and Description |
---|---|
StationDropItem |
getItem()
Gets information about the item that is dropped.
|
StationDropOperation |
getOperation()
Gets the
StationDropOperation that was created by DockStation.prepareDrop(StationDropItem) ,
this might be null if the station was not yet asked or if the station does not
accept the new child. |
DockStation |
getParent()
Gets the
DockStation which might be the next parent of InserterSource.getItem() . |
void |
setOperation(StationDropOperation operation)
Sets the result of
getOperation() . |
public DefaultInserterSource(DockStation parent, StationDropItem item)
InserterSource
.parent
- the future parentitem
- detailed information about the dropping childpublic DockStation getParent()
InserterSource
DockStation
which might be the next parent of InserterSource.getItem()
.getParent
in interface InserterSource
null
public StationDropItem getItem()
InserterSource
getItem
in interface InserterSource
Dockable
public void setOperation(StationDropOperation operation)
getOperation()
.operation
- the operation that might be executed, can be null
public StationDropOperation getOperation()
InserterSource
StationDropOperation
that was created by DockStation.prepareDrop(StationDropItem)
,
this might be null
if the station was not yet asked or if the station does not
accept the new child.getOperation
in interface InserterSource
null