Package com.mrbysco.rallyhealth.platform
Class FabricPlatformHelper
java.lang.Object
com.mrbysco.rallyhealth.platform.FabricPlatformHelper
- All Implemented Interfaces:
IPlatformHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.resources.ResourceLocationgetEntityLocation(net.minecraft.world.entity.EntityType<?> entityType) Get the entity location from the registrydoubleThe chance of regaining the damage after striking backdoubleThe percentage of damage regained after striking backintThe amount of time before the risk disables itself
-
Constructor Details
-
FabricPlatformHelper
public FabricPlatformHelper()
-
-
Method Details
-
getEntityLocation
public net.minecraft.resources.ResourceLocation getEntityLocation(net.minecraft.world.entity.EntityType<?> entityType) Description copied from interface:IPlatformHelperGet the entity location from the registry- Specified by:
getEntityLocationin interfaceIPlatformHelper- Returns:
- The entity's resource location
-
getRiskTimer
public int getRiskTimer()Description copied from interface:IPlatformHelperThe amount of time before the risk disables itself- Specified by:
getRiskTimerin interfaceIPlatformHelper- Returns:
- The configured `riskTimer`
-
getRegainChance
public double getRegainChance()Description copied from interface:IPlatformHelperThe chance of regaining the damage after striking back- Specified by:
getRegainChancein interfaceIPlatformHelper- Returns:
- The configured `regainChance`
-
getRegainPercentage
public double getRegainPercentage()Description copied from interface:IPlatformHelperThe percentage of damage regained after striking back- Specified by:
getRegainPercentagein interfaceIPlatformHelper- Returns:
- The configured `regainPercentage`
-