ModifiedAsset
Package: com.hypixel.hytale.builtin.asseteditor.data
public class ModifiedAssetTracks a modified asset’s state, location, and edit metadata. Serialized to disk via a BuilderCodec<ModifiedAsset> for persistent recent-modifications tracking across server restarts.
Fields
Section titled “Fields”| Field | Type | Description |
|---|---|---|
dataFile | Path | Path to the data file (nullable) |
path | Path | Current asset path |
oldPath | Path | Previous path if renamed (nullable) |
state | AssetState | Modification state (default: CHANGED) |
lastModificationTimestamp | Instant | When the modification occurred |
lastModificationPlayerUuid | UUID | UUID of the editing player |
lastModificationUsername | String | Username of the editing player |
Key Methods
Section titled “Key Methods”| Method | Description |
|---|---|
void markEditedBy(EditorClient) | Sets timestamp, UUID, and username from the editor client |
AssetInfo toAssetInfoPacket(String assetPack) | Converts to an AssetInfo protocol packet |
public static final BuilderCodec<ModifiedAsset> CODECSerializes/deserializes the asset modification record with fields: File, Path, OldPath, State, LastModificationTimestamp, LastModificationPlayerUuid, LastModificationUsername. Legacy IsNew/IsDeleted boolean fields are supported for deserialization.
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.