mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-19 03:49:05 +00:00
13 lines
402 B
Scala
13 lines
402 B
Scala
package codechicken.multipart
|
|
|
|
/**
|
|
* Interface for parts that fill a slot based configuration as defined in PartMap.
|
|
* If this is implemented, calling partMap(slot) on the host tile will return this part if the corresponding bit in the slotMask is set
|
|
*/
|
|
trait TSlottedPart extends TMultiPart
|
|
{
|
|
/**
|
|
* a bitmask of slots that this part fills. slot x is 1<<x
|
|
*/
|
|
def getSlotMask:Int
|
|
} |