Annotation Interface SoftImplement


@Retention(SOURCE) @Target(METHOD) public @interface SoftImplement
A purely-documentative annotation. This annotation is used by developers in xplat code. The annotated method is intended to "soft implement" a certain method in a loader specific interface that cannot be named in xplat code and thus cannot be checked with @Override. In this context, "soft implement" means to implement the method by matching the signature with the intended interface method. Examples of interfaces that we would use this for is IItemExtension or FabricItem. The intent is that we audit such sites every major Minecraft version or so, to ensure that they still properly override the intended target.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    What interface we're soft implementing
  • Element Details

    • value

      String value
      What interface we're soft implementing