1package com.runehive.game.world.entity;
3import com.runehive.game.world.Interactable;
4import com.runehive.game.world.position.Position;
5import com.runehive.game.world.region.Region;
198 public abstract boolean equals(Object obj);
void setVisible(boolean visible)
void setRegistered(boolean registered)
abstract void register()
Registers an entity to the World.
Entity(Position position)
abstract void addToRegion(Region region)
Adds this entity to the specified region.
Entity(Position position, boolean visible)
void setLength(int length)
abstract void removeFromRegion(Region region)
Removes this entity from the specified region.
abstract EntityType getType()
Gets the EntityType.
final boolean isRegistered()
final boolean isCustomObject()
Check if an entity is an object.
boolean is(EntityType type)
boolean isValid()
Validates this npc based on its current region and registered state.
static final int DEFAULT_INSTANCE
abstract String getName()
Gets the name of this entity.
Position getCenterPosition()
abstract boolean equals(Object obj)
Entity destroy()
Destroys this entity.
final boolean isStaticObject()
Check if an entity is an object.
abstract void unregister()
Unregisters an entity from the World.
void setPosition(Position position)
Represents a single tile on the game world.
Represents a single region.
An object implementing Interactable has uses.