Interface IContingencyHelper


public interface IContingencyHelper
Interface for contingency helpers.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    clearContingency(net.minecraft.world.entity.LivingEntity target)
    Clear the contingency for a given target.
    net.minecraft.resources.ResourceLocation
    getContingencyType(net.minecraft.world.entity.LivingEntity target)
    Get the contingency type for a given target.
    void
    setContingency(net.minecraft.world.entity.LivingEntity target, net.minecraft.resources.ResourceLocation type, ISpell spell)
    Set the contingency type and spell for a given target.
    void
    triggerContingency(net.minecraft.world.entity.LivingEntity target, net.minecraft.resources.ResourceLocation type)
    Trigger a contingency for a given target.
  • Method Details

    • setContingency

      void setContingency(net.minecraft.world.entity.LivingEntity target, net.minecraft.resources.ResourceLocation type, ISpell spell)
      Set the contingency type and spell for a given target.
      Parameters:
      target - The target to set the contingency for.
      type - The contingency type.
      spell - The spell to set.
    • getContingencyType

      net.minecraft.resources.ResourceLocation getContingencyType(net.minecraft.world.entity.LivingEntity target)
      Get the contingency type for a given target.
      Parameters:
      target - The target to get the contingency type for.
      Returns:
      The contingency type.
    • triggerContingency

      void triggerContingency(net.minecraft.world.entity.LivingEntity target, net.minecraft.resources.ResourceLocation type)
      Trigger a contingency for a given target.
      Parameters:
      target - The target to trigger the contingency for.
      type - The contingency type.
    • clearContingency

      void clearContingency(net.minecraft.world.entity.LivingEntity target)
      Clear the contingency for a given target.
      Parameters:
      target - The target to clear the contingency for.