aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/features/world/NavigableWaypoint.kt
blob: 653fd877336124635f2e3516f8464daf37b6d54a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package moe.nea.firmament.features.world

import io.github.moulberry.repo.data.NEUItem
import net.minecraft.core.BlockPos
import moe.nea.firmament.util.SkyBlockIsland

abstract class NavigableWaypoint {
    abstract val name: String
    abstract val position: BlockPos
    abstract val island: SkyBlockIsland

    data class NPCWaypoint(
        val item: NEUItem,
    ) : NavigableWaypoint() {
        override val name: String
            get() = item.displayName
        override val position: BlockPos
            get() = BlockPos(item.x, item.y, item.z)
        override val island: SkyBlockIsland
            get() = SkyBlockIsland.forMode(item.island)
    }
}