Documentation cleanup

This commit is contained in:
Ruling-0 committed 2026-11-25 14:45:57 -06:00
1 parent dd4bd60c3e
commit 05a424db34
23 files changed
+169 -291

No files matched your search

@@ -8,18 +8,15 @@ import com.gtnewhorizons.postea.api.IVersionedTransformer;
import com.gtnewhorizons.postea.api.PlayerDataTransformContext;
import com.gtnewhorizons.postea.api.VersionedReplacementManager;
/**
* Runs versioned transformers over a server player's NBT as it is read, and stamps it as it is written. Hooked on
* {@code Entity.readFromNBT}/{@code writeToNBT} so both the {@code playerdata/<uuid>.dat} files and the
* single-player host's copy inside {@code level.dat} are covered.
*/
/// Runs versioned transformers over a server player's NBT as it is read, and stamps it as it is written.
///
/// Hooks `Entity.readFromNBT` and `writeToNBT`, which covers `playerdata/<uuid>.dat` and the single-player host's
/// copy inside `level.dat`.
public final class PlayerDataFixerUtility {
private PlayerDataFixerUtility() {}
/**
* Transforms {@code tag} in place and returns a copy of the stamps it carried (null when unstamped).
*/
/// Transforms `tag` in place and returns a copy of the stamps it carried, or null if unstamped.
public static NBTTagCompound onPlayerRead(EntityPlayerMP player, NBTTagCompound tag) {
NBTTagCompound stamps = VersionStamps.read(tag);
for (IVersionedTransformer transformer : VersionedReplacementManager.transformers()) {