Registry
Package: com.hypixel.hytale.builtin.hytalegenerator
public class Registry<T>Generic bidirectional registry mapping objects to sequential integer IDs.
Key Methods
Section titled “Key Methods”| Modifier | Return Type | Signature |
|---|---|---|
public | int | getIdOrRegister(T object) |
public | T | getObject(int id) |
public | int | size() |
public | List<T> | getAllValues() |
public | void | forEach(@Nonnull BiConsumer<Integer, T> consumer) |
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.