Class AbstractOverlayAnnotation<T extends ClassMemberStub>

    • Constructor Detail

      • AbstractOverlayAnnotation

        public AbstractOverlayAnnotation​(@NotNull
                                         MixinLoggingFacade logger)
    • Method Detail

      • getDesiredName

        @NotNull
        public abstract java.lang.String getDesiredName​(@NotNull
                                                        T source,
                                                        @NotNull
                                                        org.objectweb.asm.tree.ClassNode target,
                                                        @NotNull
                                                        SimpleRemapper remapper,
                                                        @NotNull
                                                        java.lang.StringBuilder sharedBuilder)
      • handleCollision

        public abstract boolean handleCollision​(@NotNull
                                                T source,
                                                @NotNull
                                                org.objectweb.asm.tree.ClassNode target,
                                                int collidedAccess)
        Method that is called if the source collides with an already existing member.
        Parameters:
        source - The source handler
        target - The target class
        collidedAccess - The access modifiers of the member that already exists.
        Returns:
        True to overwrite the member, false to abort overlaying.