Interface IPlatformHelper
- All Known Implementing Classes:
ForgePlatformHelper
public interface IPlatformHelper
-
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
-
Method Details
-
getEntityLocation
net.minecraft.resources.ResourceLocation getEntityLocation(net.minecraft.world.entity.EntityType<?> entityType) Get the entity location from the registry- Returns:
- The entity's resource location
-
getRiskTimer
int getRiskTimer()The amount of time before the risk disables itself- Returns:
- The configured `riskTimer`
-
getRegainChance
double getRegainChance()The chance of regaining the damage after striking back- Returns:
- The configured `regainChance`
-
getRegainPercentage
double getRegainPercentage()The percentage of damage regained after striking back- Returns:
- The configured `regainPercentage`
-