Interface IPlatformHelper
- All Known Implementing Classes:
NeoForgePlatformHelper
public interface IPlatformHelper
-
Method Summary
Modifier and TypeMethodDescriptionintGet the health per death configured.Get the health setting configured.intGet the maximum health that can be regained.intGet the minimum health configured.Get the list of regeneration targets.booleanisPlayer(net.minecraft.world.entity.Entity entity) If the entity is a player.booleanCheck if the reduced health message is enabled.booleanCheck if health regeneration is enabled.booleanCheck if the regeneration health message is enabled.voidsetAmountData(net.minecraft.world.entity.player.Player player, String customTag, int targetAmount, int healthGained) Sets the amount of kills for the player
-
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
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 forcustomTag- The custom tag to usetargetAmount- The amount of kills neededhealthGained- The amount of health gained
-