Interface IPlatformHelper


public interface IPlatformHelper
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.resources.ResourceLocation
    getEntityLocation(net.minecraft.world.entity.EntityType<?> entityType)
    Get the entity location from the registry
    double
    The chance of regaining the damage after striking back
    double
    The percentage of damage regained after striking back
    int
    The 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`