Class NeoForgePlatformHelper

java.lang.Object
com.mrbysco.unhealthydying.platform.NeoForgePlatformHelper
All Implemented Interfaces:
IPlatformHelper

public class NeoForgePlatformHelper extends Object implements IPlatformHelper
  • Constructor Details

    • NeoForgePlatformHelper

      public NeoForgePlatformHelper()
  • Method Details

    • getMinimumHealth

      public int getMinimumHealth()
      Description copied from interface: IPlatformHelper
      Get the minimum health configured.
      Specified by:
      getMinimumHealth in interface IPlatformHelper
      Returns:
      The minimum health configured
    • getHealthPerDeath

      public int getHealthPerDeath()
      Description copied from interface: IPlatformHelper
      Get the health per death configured.
      Specified by:
      getHealthPerDeath in interface IPlatformHelper
      Returns:
      The health per death configured
    • isReducedHealthMessageEnabled

      public boolean isReducedHealthMessageEnabled()
      Description copied from interface: IPlatformHelper
      Check if the reduced health message is enabled.
      Specified by:
      isReducedHealthMessageEnabled in interface IPlatformHelper
      Returns:
      True if the reduced health message is enabled, false otherwise
    • getHealthSetting

      public EnumHealthSetting getHealthSetting()
      Description copied from interface: IPlatformHelper
      Get the health setting configured.
      Specified by:
      getHealthSetting in interface IPlatformHelper
      Returns:
      The health setting configured
    • isRegenHealthEnabled

      public boolean isRegenHealthEnabled()
      Description copied from interface: IPlatformHelper
      Check if health regeneration is enabled.
      Specified by:
      isRegenHealthEnabled in interface IPlatformHelper
      Returns:
      True if health regeneration is enabled, false otherwise
    • getMaxRegained

      public int getMaxRegained()
      Description copied from interface: IPlatformHelper
      Get the maximum health that can be regained.
      Specified by:
      getMaxRegained in interface IPlatformHelper
      Returns:
      The maximum health that can be regained
    • isRegenHealthMessageEnabled

      public boolean isRegenHealthMessageEnabled()
      Description copied from interface: IPlatformHelper
      Check if the regeneration health message is enabled.
      Specified by:
      isRegenHealthMessageEnabled in interface IPlatformHelper
      Returns:
      True if the regeneration health message is enabled, false otherwise
    • getRegenTargets

      public List<? extends String> getRegenTargets()
      Description copied from interface: IPlatformHelper
      Get the list of regeneration targets.
      Specified by:
      getRegenTargets in interface IPlatformHelper
      Returns:
      The list of regeneration targets
    • isPlayer

      public boolean isPlayer(net.minecraft.world.entity.Entity entity)
      Description copied from interface: IPlatformHelper
      If the entity is a player.
      Specified by:
      isPlayer in interface IPlatformHelper
      Returns:
      True if the entity is a player, false otherwise
    • setAmountData

      public void setAmountData(net.minecraft.world.entity.player.Player player, String customTag, int targetAmount, int healthGained)
      Description copied from interface: IPlatformHelper
      Sets the amount of kills for the player
      Specified by:
      setAmountData in interface IPlatformHelper
      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