Interface IFeatureValidator


public interface IFeatureValidator
Feature validators are responsible for deciding if certain features are allowed in given contexts.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final IFeatureValidator
    Allows all features.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Decides whether the given mixin can enum-extend the given target class.
  • Field Details

  • Method Details

    • validateEnumExtension

      void validateEnumExtension(IMixinInfo mixin, ClassInfo targetClass) throws org.spongepowered.asm.mixin.transformer.throwables.InvalidMixinException
      Decides whether the given mixin can enum-extend the given target class. If not, should throw an InvalidMixinException with an informative error as to why this is not allowed.
      Parameters:
      mixin - the enum extension Mixin
      targetClass - the target class the Mixin is trying to extend
      Throws:
      org.spongepowered.asm.mixin.transformer.throwables.InvalidMixinException