Holy shit
This commit is contained in:
parent
5d8b770b94
commit
cef4bdb033
@ -9,7 +9,6 @@ import java.util.UUID
|
||||
class ExoPackSlotUpgradeItem : AbstractExoPackSlotUpgradeItem {
|
||||
val hasDescription: Boolean
|
||||
val slotCount: Int
|
||||
val isCreative: Boolean
|
||||
|
||||
private val uuidProvider: () -> UUID?
|
||||
|
||||
@ -25,31 +24,15 @@ class ExoPackSlotUpgradeItem : AbstractExoPackSlotUpgradeItem {
|
||||
return slotCount
|
||||
}
|
||||
|
||||
constructor(slotCount: Int, properties: Properties = defaultProperties(), hasDescription: Boolean = false) : super(properties) {
|
||||
isCreative = false
|
||||
this.slotCount = slotCount
|
||||
this.uuidProvider = lazy { registryName!!.toUUID() }::value
|
||||
this.hasDescription = hasDescription
|
||||
}
|
||||
|
||||
constructor(uuid: UUID?, slotCount: Int, properties: Properties = defaultProperties(), hasDescription: Boolean = false) : super(properties) {
|
||||
isCreative = uuid == null
|
||||
this.slotCount = slotCount
|
||||
this.uuidProvider = { UUID(0L, 0L) }
|
||||
this.hasDescription = hasDescription
|
||||
}
|
||||
|
||||
constructor(slotCount: Int, rarity: Rarity, hasDescription: Boolean = false) : super(defaultProperties(rarity)) {
|
||||
isCreative = false
|
||||
this.slotCount = slotCount
|
||||
this.uuidProvider = lazy { registryName!!.toUUID() }::value
|
||||
this.hasDescription = hasDescription
|
||||
}
|
||||
|
||||
constructor(uuid: UUID?, slotCount: Int, rarity: Rarity, hasDescription: Boolean = false) : super(defaultProperties(rarity)) {
|
||||
isCreative = uuid == null
|
||||
this.slotCount = slotCount
|
||||
this.uuidProvider = { UUID(0L, 0L) }
|
||||
this.uuidProvider = { uuid }
|
||||
this.hasDescription = hasDescription
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user