Skip to content

ModifiedAsset

Package: com.hypixel.hytale.builtin.asseteditor.data

public class ModifiedAsset

Tracks a modified asset’s state, location, and edit metadata. Serialized to disk via a BuilderCodec<ModifiedAsset> for persistent recent-modifications tracking across server restarts.

FieldTypeDescription
dataFilePathPath to the data file (nullable)
pathPathCurrent asset path
oldPathPathPrevious path if renamed (nullable)
stateAssetStateModification state (default: CHANGED)
lastModificationTimestampInstantWhen the modification occurred
lastModificationPlayerUuidUUIDUUID of the editing player
lastModificationUsernameStringUsername of the editing player
MethodDescription
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> CODEC

Serializes/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.