20 lines
653 B
Java
20 lines
653 B
Java
|
package com.thebrokenrail.slightlyvanilla.mixin;
|
||
|
|
||
|
import net.fabricmc.api.EnvType;
|
||
|
import net.fabricmc.api.Environment;
|
||
|
import net.minecraft.block.Block;
|
||
|
import net.minecraft.entity.player.PlayerEntity;
|
||
|
import net.minecraft.screen.ScreenHandler;
|
||
|
import net.minecraft.screen.ScreenHandlerContext;
|
||
|
import org.spongepowered.asm.mixin.Mixin;
|
||
|
import org.spongepowered.asm.mixin.gen.Invoker;
|
||
|
|
||
|
@Environment(EnvType.CLIENT)
|
||
|
@Mixin(ScreenHandler.class)
|
||
|
public interface ScreenHandlerAccessor {
|
||
|
@Invoker
|
||
|
static boolean callCanUse(ScreenHandlerContext context, PlayerEntity player, Block block) {
|
||
|
throw new UnsupportedOperationException();
|
||
|
}
|
||
|
}
|