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()
InserterSourceDockStation which might be the next parent of InserterSource.getItem().getParent in interface InserterSourcenullpublic StationDropItem getItem()
InserterSourcegetItem in interface InserterSourceDockablepublic void setOperation(StationDropOperation operation)
getOperation().operation - the operation that might be executed, can be nullpublic StationDropOperation getOperation()
InserterSourceStationDropOperation 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 InserterSourcenullCopyright © 2017 Docking Frames. All rights reserved.