RuneHive-Game
Loading...
Searching...
No Matches
SkullHeadIconType.java
Go to the documentation of this file.
1package com.runehive.content.combat;
2
3import java.util.Optional;
4
5public enum SkullHeadIconType {
9
10 private final int cocde;
11
13 this.cocde = code;
14 }
15
16 public static Optional<SkullHeadIconType> lookup(int code) {
17 if (code < -1 || code > 1) {
18 return Optional.empty();
19 }
20
21 return Optional.of(SkullHeadIconType.values()[code + 1]);
22 }
23
24 public int getCode() {
25 return cocde;
26 }
27
28}
static Optional< SkullHeadIconType > lookup(int code)