mirror of
https://github.com/GTNewHorizons/Postea.git
synced 2026-11-25 22:44:51 +00:00
Documentation cleanup
This commit is contained in:
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()) {
|
||||
|
||||
Reference in new issue
Block a user