Rivoreo Source Code Repositories
src.rivoreo.one
/
minecraft
/
opencomputers
/
6e4debf72bf82c986ce93b9dfe9d9db91fa54ce1
/
.
/
src
/
main
/
scala
/
li
/
cil
/
oc
/
util
/
Rarity.scala
blob: 2c7b8ddf8dc9afc5dfca15559236efd1686b0044 [
file
] [
log
] [
blame
] [
raw
]
package
li
.
cil
.
oc
.
util
import
net
.
minecraft
.
item
.
EnumRarity
object
Rarity
{
private
val
lookup
=
Array
(
EnumRarity
.
common
,
EnumRarity
.
uncommon
,
EnumRarity
.
rare
,
EnumRarity
.
epic
)
def
byTier
(
tier
:
Int
)
=
lookup
(
tier max
0
min
(
lookup
.
length
-
1
))
}