Interface IPlatformHelper


public interface IPlatformHelper
  • Method Details

    • getMinimumHealth

      int getMinimumHealth()
      Get the minimum health configured.
      Returns:
      The minimum health configured
    • getHealthPerDeath

      int getHealthPerDeath()
      Get the health per death configured.
      Returns:
      The health per death configured
    • isReducedHealthMessageEnabled

      boolean isReducedHealthMessageEnabled()
      Check if the reduced health message is enabled.
      Returns:
      True if the reduced health message is enabled, false otherwise
    • getHealthSetting

      EnumHealthSetting getHealthSetting()
      Get the health setting configured.
      Returns:
      The health setting configured
    • isRegenHealthEnabled

      boolean isRegenHealthEnabled()
      Check if health regeneration is enabled.
      Returns:
      True if health regeneration is enabled, false otherwise
    • getMaxRegained

      int getMaxRegained()
      Get the maximum health that can be regained.
      Returns:
      The maximum health that can be regained
    • isRegenHealthMessageEnabled

      boolean isRegenHealthMessageEnabled()
      Check if the regeneration health message is enabled.
      Returns:
      True if the regeneration health message is enabled, false otherwise
    • getRegenTargets

      List<? extends String> getRegenTargets()
      Get the list of regeneration targets.
      Returns:
      The list of regeneration targets
    • isPlayer

      boolean isPlayer(net.minecraft.world.entity.Entity entity)
      If the entity is a player.
      Returns:
      True if the entity is a player, false otherwise
    • setAmountData

      void setAmountData(net.minecraft.world.entity.player.Player player, String customTag, int targetAmount, int healthGained)
      Sets the amount of kills for the player
      Parameters:
      player - The player to set the data for
      customTag - The custom tag to use
      targetAmount - The amount of kills needed
      healthGained - The amount of health gained