Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.