Direct block payload pickup

This commit is contained in:
Anuken
2020-06-04 10:19:25 -04:00
parent 95354f6d11
commit f112226178
4 changed files with 33 additions and 2 deletions

View File

@@ -538,6 +538,11 @@ abstract class TileComp implements Posc, Teamc, Healthc, Tilec, Timerc, QuadTree
return this;
}
/** Tries to take the payload. Returns null if no payload is present. */
public @Nullable Payload takePayload(){
return null;
}
/**
* Tries to put this item into a nearby container, if there are no available
* containers, it gets added to the block's inventory.