Class CacheModel

    • Field Detail

      • vertexCount

        public int vertexCount
    • Constructor Detail

      • CacheModel

        public CacheModel​(int id)
    • Method Detail

      • load

        public static CacheModel load​(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 interface DecodedItem
        Throws:
        java.io.IOException
      • getColors

        public java.util.Set<java.awt.Color> getColors()
      • getId

        public int getId()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.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 interface Validatable
        Returns:
        true if it's still available, otherwise false
      • translate

        public void translate​(int xOff,
                              int yOff,
                              int zOff)