Class NeoForgePlatformHelper

java.lang.Object
com.mrbysco.rallyhealth.platform.NeoForgePlatformHelper
All Implemented Interfaces:
IPlatformHelper

public class NeoForgePlatformHelper extends Object implements IPlatformHelper
  • Constructor Details

    • NeoForgePlatformHelper

      public NeoForgePlatformHelper()
  • Method Details

    • getEntityLocation

      public net.minecraft.resources.ResourceLocation getEntityLocation(net.minecraft.world.entity.EntityType<?> entityType)
      Description copied from interface: IPlatformHelper
      Get the entity location from the registry
      Specified by:
      getEntityLocation in interface IPlatformHelper
      Returns:
      The entity's resource location
    • getRiskTimer

      public int getRiskTimer()
      Description copied from interface: IPlatformHelper
      The amount of time before the risk disables itself
      Specified by:
      getRiskTimer in interface IPlatformHelper
      Returns:
      The configured `riskTimer`
    • getRegainChance

      public double getRegainChance()
      Description copied from interface: IPlatformHelper
      The chance of regaining the damage after striking back
      Specified by:
      getRegainChance in interface IPlatformHelper
      Returns:
      The configured `regainChance`
    • getRegainPercentage

      public double getRegainPercentage()
      Description copied from interface: IPlatformHelper
      The percentage of damage regained after striking back
      Specified by:
      getRegainPercentage in interface IPlatformHelper
      Returns:
      The configured `regainPercentage`