Class CacheModel
- java.lang.Object
-
- com.runemate.game.api.hybrid.cache.elements.CacheModel
-
- All Implemented Interfaces:
Validatable
,DecodedItem
public class CacheModel extends java.lang.Object implements Validatable, DecodedItem
-
-
Field Summary
Fields Modifier and Type Field Description int
vertexCount
-
Constructor Summary
Constructors Constructor Description CacheModel(int id)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
decode(Js5InputStream stream)
boolean
equals(java.lang.Object o)
java.util.Set<java.awt.Color>
getColors()
int
getId()
int
hashCode()
boolean
isValid()
Verifies whether this entity is valid and still exists, typically on the world-graphstatic CacheModel
load(int id)
static CacheModel
load(JS5CacheController controller, int id)
static java.util.List<CacheModel>
loadAll()
static java.util.List<CacheModel>
loadAll(int[] ids)
static java.util.List<CacheModel>
loadAll(java.util.Collection<java.lang.Integer> ids)
static java.util.Map<java.lang.Integer,byte[]>
retrieveAll()
java.lang.String
toString()
void
translate(int[] offsets)
void
translate(int xOff, int yOff, int zOff)
-
-
-
Method Detail
-
load
public static CacheModel load(int id)
-
load
public static CacheModel load(JS5CacheController controller, int id)
-
loadAll
public static java.util.List<CacheModel> loadAll(java.util.Collection<java.lang.Integer> ids)
-
loadAll
public static java.util.List<CacheModel> loadAll(int[] ids)
-
loadAll
public static java.util.List<CacheModel> loadAll()
-
retrieveAll
public static java.util.Map<java.lang.Integer,byte[]> retrieveAll()
-
translate
public void translate(int[] offsets)
-
decode
public void decode(Js5InputStream stream) throws java.io.IOException
- Specified by:
decode
in interfaceDecodedItem
- Throws:
java.io.IOException
-
getColors
public java.util.Set<java.awt.Color> getColors()
-
getId
public int getId()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
isValid
public boolean isValid()
Description copied from interface:Validatable
Verifies whether this entity is valid and still exists, typically on the world-graph- Specified by:
isValid
in interfaceValidatable
- Returns:
- true if it's still available, otherwise false
-
translate
public void translate(int xOff, int yOff, int zOff)
-
-