Files
ForgeMultipart/codechicken/multipart/TSlottedPart.scala
T

13 lines
383 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
{
/**
* a bitmask of slots that this part fills. slot x is 1<<x
*/
def getSlotMask:Int
}