Package mindustry.mod.data
Class PatchAsset
java.lang.Object
mindustry.mod.data.DataAsset
mindustry.mod.data.PatchAsset
- All Implemented Interfaces:
Comparable<DataAsset>
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanTrue if an error was encountered.arc.util.serialization.JsonValueParsed JSON value.Raw string value, containing original formatting.arc.struct.Seq<String>Warnings encountered during patching.Fields inherited from class mindustry.mod.data.DataAsset
byteHash, name, path, stringHash -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]getData()getType()voidvoidreadFromZip(String path, arc.files.Fi file) voidreadOverride(String path, arc.files.Fi file) Reads this asset in from a file on disk, and makes its hash point to the specified file, instead of a new one in the cache folder.toString()voidwrite(DataOutput stream) Methods inherited from class mindustry.mod.data.DataAsset
compareTo, getCacheFile, getCacheFileNoNull, getFullPath, isAlwaysEmbedded, isCached, setHash, setPath, updateData
-
Field Details
-
patch
Raw string value, containing original formatting. -
json
public arc.util.serialization.JsonValue jsonParsed JSON value. Can be an empty error value if parsing failed. -
error
public boolean errorTrue if an error was encountered. -
warnings
Warnings encountered during patching.
-
-
Constructor Details
-
PatchAsset
-
-
Method Details
-
getData
public byte[] getData() -
readFromZip
- Overrides:
readFromZipin classDataAsset
-
readOverride
Description copied from class:DataAssetReads this asset in from a file on disk, and makes its hash point to the specified file, instead of a new one in the cache folder. Only used on the server.- Overrides:
readOverridein classDataAsset- Throws:
IOException
-
getType
-
read
- Overrides:
readin classDataAsset- Throws:
IOException
-
write
- Overrides:
writein classDataAsset- Throws:
IOException
-
toString
-