Jump to content

Recommended Posts

Posted

Im pretty sure of my mixin files work, the json one spongepowered etc.
But i get this error when i try to comply:
 

> Task :compileJava
Note: SpongePowered MIXIN Annotation Processor Version=0.8.5 (MixinGradle Version=0.7)
Note: Supported obfuscation types: ObfuscationServiceMCP supports [notch] ObfuscationServiceFG3 supports [searge]
Note: Loading searge mappings from C:\Users\g³no\Desktop\Reimagined-1.20.1\build\createMcpToSrg\output.tsrg
C:\Users\g³no\Desktop\Reimagined-1.20.1\src\main\java\com\guniks\reimagined\mixins\CreateFanMixin.java:17: error: Unable to locate obfuscation mapping for @Inject target canProcess
        @Inject(at = @At("HEAD"), method = "canProcess", cancellable = true)
        ^
Note: Writing refmap to C:\Users\g³no\Desktop\Reimagined-1.20.1\build\tmp\compileJava\compileJava-refmap.json
Note: Writing refmap to C:\Users\g³no\Desktop\Reimagined-1.20.1\build\tmp\compileJava\compileJava-refmap.json
Note: Writing searge composite mappings to C:\Users\g³no\Desktop\Reimagined-1.20.1\build\tmp\compileJava\compileJava-mappings.tsrg
Note: Writing refmap to C:\Users\g³no\Desktop\Reimagined-1.20.1\build\tmp\compileJava\compileJava-refmap.json
Note: Writing refmap to C:\Users\g³no\Desktop\Reimagined-1.20.1\build\tmp\compileJava\compileJava-refmap.json
Note: Writing searge composite mappings to C:\Users\g³no\Desktop\Reimagined-1.20.1\build\tmp\compileJava\compileJava-mappings.tsrg
1 error

The CreateFanMixin file is this:
 

package com.guniks.reimagined.mixins;

import com.simibubi.create.content.kinetics.fan.processing.AllFanProcessingTypes;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.level.Level;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;

import java.util.Collections;
import java.util.List;

@Mixin(AllFanProcessingTypes.BlastingType.class)
public abstract class CreateFanMixin {
	
	@Inject(at = @At("HEAD"), method = "canProcess", cancellable = true)
    public boolean canProcessDisable(ItemStack stack, Level level, CallbackInfoReturnable<List<Boolean>> cir) {
        cir.setReturnValue(false);
    }
	
}

Can anyone help please?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.