Interface IPlayerLoadListener
- All Known Implementing Classes:
CustomPlayerSave
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
An event listener that is notified when player data is read from the disk. This listener will be notified after the
vanilla data has been loaded.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.fabricmc.fabric.api.event.Event<IPlayerLoadListener> -
Method Summary
Modifier and TypeMethodDescriptionvoidloadPlayerData(net.minecraft.world.entity.player.Player player, Path saveDir) Called when a player's data is loaded directly from the disk.
-
Field Details
-
EVENT
-
-
Method Details
-
loadPlayerData
Called when a player's data is loaded directly from the disk.- Parameters:
player- The player that is being loaded.saveDir- The save folder.
-