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