public interface Extractable
| Modifier and Type | Method and Description |
|---|---|
boolean |
canExtract(java.lang.Class<?> type,
Direction side)
Called to check if a block can have something extracted from it.
|
java.lang.Object |
extract(java.lang.Object object,
Direction side,
boolean simulate)
Called when something is extracted from a block.
|
boolean canExtract(java.lang.Class<?> type,
Direction side)
type - The type of the extracted object.side - The side the object is extracted on.true if this type can be extracted.java.lang.Object extract(java.lang.Object object,
Direction side,
boolean simulate)
object - The extracted object.side - The side the object is extracted on.simulate - Whether to simulate the extraction.