1package com.runehive.game.world.object;
3import it.unimi.dsi.fastutil.ints.Int2ObjectMap;
4import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap;
7import java.util.Optional;
64 private static final Int2ObjectMap<ObjectDirection>
idToDirection =
new Int2ObjectOpenHashMap<>(
values.length);
80 public static Optional<ObjectDirection>
valueOf(
final int id) {
SOUTH
The south orientation.
final int id
The identification of this direction.
static Optional< ObjectDirection > valueOf(final int id)
Returns a ObjectDirection wrapped in an Optional for the specified id.
static final ObjectDirection[] values
static final Int2ObjectMap< ObjectDirection > idToDirection
A mutable Map of int keys to ObjectDirection values.
WEST
The west orientation.
EAST
The east orientation.
ObjectDirection(int id)
Creates a new ObjectDirection.
NORTH
The north orientation.
final int getId()
Gets the identification of this direction.