Class NeoForgePlatformHelper
java.lang.Object
com.mrbysco.unhealthydying.platform.NeoForgePlatformHelper
- All Implemented Interfaces:
IPlatformHelper
-
Constructor Summary
Constructors -
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
-
Constructor Details
-
NeoForgePlatformHelper
public NeoForgePlatformHelper()
-
-
Method Details
-
getMinimumHealth
public int getMinimumHealth()Description copied from interface:IPlatformHelperGet the minimum health configured.- Specified by:
getMinimumHealthin interfaceIPlatformHelper- Returns:
- The minimum health configured
-
getHealthPerDeath
public int getHealthPerDeath()Description copied from interface:IPlatformHelperGet the health per death configured.- Specified by:
getHealthPerDeathin interfaceIPlatformHelper- Returns:
- The health per death configured
-
isReducedHealthMessageEnabled
public boolean isReducedHealthMessageEnabled()Description copied from interface:IPlatformHelperCheck if the reduced health message is enabled.- Specified by:
isReducedHealthMessageEnabledin interfaceIPlatformHelper- Returns:
- True if the reduced health message is enabled, false otherwise
-
getHealthSetting
Description copied from interface:IPlatformHelperGet the health setting configured.- Specified by:
getHealthSettingin interfaceIPlatformHelper- Returns:
- The health setting configured
-
isRegenHealthEnabled
public boolean isRegenHealthEnabled()Description copied from interface:IPlatformHelperCheck if health regeneration is enabled.- Specified by:
isRegenHealthEnabledin interfaceIPlatformHelper- Returns:
- True if health regeneration is enabled, false otherwise
-
getMaxRegained
public int getMaxRegained()Description copied from interface:IPlatformHelperGet the maximum health that can be regained.- Specified by:
getMaxRegainedin interfaceIPlatformHelper- Returns:
- The maximum health that can be regained
-
isRegenHealthMessageEnabled
public boolean isRegenHealthMessageEnabled()Description copied from interface:IPlatformHelperCheck if the regeneration health message is enabled.- Specified by:
isRegenHealthMessageEnabledin interfaceIPlatformHelper- Returns:
- True if the regeneration health message is enabled, false otherwise
-
getRegenTargets
Description copied from interface:IPlatformHelperGet the list of regeneration targets.- Specified by:
getRegenTargetsin interfaceIPlatformHelper- Returns:
- The list of regeneration targets
-
isPlayer
public boolean isPlayer(net.minecraft.world.entity.Entity entity) Description copied from interface:IPlatformHelperIf the entity is a player.- Specified by:
isPlayerin interfaceIPlatformHelper- 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:IPlatformHelperSets the amount of kills for the player- Specified by:
setAmountDatain interfaceIPlatformHelper- Parameters:
player- The player to set the data forcustomTag- The custom tag to usetargetAmount- The amount of kills neededhealthGained- The amount of health gained
-