Contents
Class CommonAsset
java.lang.Object
com.hypixel.hytale.server.core.asset.common.CommonAsset
- All Implemented Interfaces:
NetworkSerializable<Asset>
- Direct Known Subclasses:
FileCommonAsset, ResourceCommonAsset
- Since:
- 1/05/2017
- Version:
- 1.0
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCommonAsset(String name, byte[] bytes) CommonAsset(String name, String hash, byte[] bytes) -
Method Summary
-
Field Details
-
HASH_LENGTH
public static final int HASH_LENGTH- See Also:
-
HASH_PATTERN
-
-
Constructor Details
-
CommonAsset
-
CommonAsset
-
-
Method Details
-
getName
-
getHash
-
getBlob
-
toPacket
- Specified by:
toPacketin interfaceNetworkSerializable<Asset>
-
equals
-
hashCode
-
toString
-
hash
Creates a hash from bytes matching theHASH_PATTERN.- Parameters:
bytes- bytes to hash- Returns:
- the hash of the provided bytes
-