All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jglrxavpok.hephaistos.nbt.NBTNumber.kt Maven / Gradle / Ivy

There is a newer version: 2.6.1
Show newest version
package org.jglrxavpok.hephaistos.nbt

import java.util.*

abstract class NBTNumber(open val value: Type): NBT {

    override fun hashCode(): Int {
        return Objects.hash(value)
    }

    override fun toString() = toSNBT()

    override fun equals(other: Any?): Boolean {
        if (this === other) return true

        other as NBTNumber

        if (value != other.value) return false

        return true
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy