Holy shit

This commit is contained in:
DBotThePony 2023-07-09 15:50:44 +07:00
parent 5d8b770b94
commit cef4bdb033
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -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
}
}