1package com.runehive.util.parser.impl;
3import com.google.gson.JsonObject;
4import com.runehive.game.world.object.ObjectType;
5import com.runehive.game.world.position.Position;
6import com.runehive.game.world.object.CustomGameObject;
7import com.runehive.game.world.object.ObjectDirection;
8import com.runehive.util.parser.GsonParser;
18 super(
"def/object/global_objects",
false);
22 protected void parse(JsonObject data) {
23 int id = data.get(
"id").getAsInt();
Represents a static game object loaded from the map fs.
void register()
Registers an entity to the World.
Represents a single tile on the game world.
GsonParser(String path)
Creates a new GsonParser.
transient Gson builder
The Gson object.
void parse(JsonObject data)
The method allows a user to modify the data as its being parsed.
The enumerated type whose elements represent the directions for objects.
static Optional< ObjectDirection > valueOf(final int id)
Returns a ObjectDirection wrapped in an Optional for the specified id.
The enumerated type whose elements represent all of the object types.
static Optional< ObjectType > valueOf(final int id)
Returns a ObjectType wrapped in an Optional for the specified id.