Class AirSaver
java.lang.Object
com.pixelmonmod.pixelmon.api.util.AirSaver
Preserves the player's current air count and prevents drowning.
-
Constructor Details
-
AirSaver
public AirSaver(net.minecraft.server.level.ServerPlayer player) Initializes an air saver.- Parameters:
player
- The player to prevent from drowning.
-
-
Method Details
-
tick
public void tick()Resets the player's air count to its initial value.
-