Class VirtualFieldOverlayAnnotation

    • Constructor Detail

      • VirtualFieldOverlayAnnotation

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

      • handleCollision

        public boolean handleCollision​(@NotNull
                                       MixinFieldStub source,
                                       @NotNull
                                       org.objectweb.asm.tree.ClassNode target,
                                       int collidedAccess)
        Description copied from class: AbstractOverlayAnnotation
        Method that is called if the source collides with an already existing member.
        Specified by:
        handleCollision in class AbstractOverlayAnnotation<MixinFieldStub>
        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.