Class AirSaver

java.lang.Object
com.pixelmonmod.pixelmon.api.util.AirSaver

public class AirSaver extends Object
Preserves the player's current air count and prevents drowning.
  • Constructor Summary

    Constructors
    Constructor
    Description
    AirSaver(net.minecraft.server.level.ServerPlayer player)
    Initializes an air saver.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Resets the player's air count to its initial value.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.