WIP: Merge pull request #326 from blackd/ipn-integration
Add integration with Inventory Profiles Next for End Stone Smelter. `IPNIgnore` needs to be moved to BCLib and some more testing is required.
This commit is contained in:
commit
b713e2f4d6
4 changed files with 31 additions and 18 deletions
|
@ -70,6 +70,7 @@ def useApi(String dep) {
|
|||
dependencies.modApi(dep) {
|
||||
exclude group: 'net.fabricmc.fabric-api'
|
||||
exclude group: 'net.fabricmc'
|
||||
exclude group: 'com.terraformersmc'
|
||||
if (!dep.contains("me.shedaniel")) {
|
||||
exclude group: 'me.shedaniel.cloth'
|
||||
exclude group: 'me.shedaniel'
|
||||
|
|
|
@ -9,8 +9,10 @@ loader_version=0.11.6
|
|||
mod_version=0.12.0-pre
|
||||
maven_group=ru.betterend
|
||||
archives_base_name=better-end
|
||||
|
||||
# Dependencies
|
||||
# currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api
|
||||
|
||||
patchouli_version = 55-FABRIC-SNAPSHOT
|
||||
fabric_version = 0.36.1+1.17
|
||||
bclib_version = 0.4.1
|
||||
|
|
8
src/main/java/org/anti_ad/mc/ipn/api/IPNIgnore.java
Normal file
8
src/main/java/org/anti_ad/mc/ipn/api/IPNIgnore.java
Normal file
|
@ -0,0 +1,8 @@
|
|||
package org.anti_ad.mc.ipn.api;
|
||||
|
||||
import java.lang.annotation.*;
|
||||
|
||||
// Included from "Inventory Profiles Next" (https://github.com/blackd/Inventory-Profiles)
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target(ElementType.TYPE)
|
||||
public @interface IPNIgnore {}
|
|
@ -18,6 +18,7 @@ import net.minecraft.world.inventory.StackedContentsCompatible;
|
|||
import net.minecraft.world.item.ItemStack;
|
||||
import net.minecraft.world.item.crafting.Recipe;
|
||||
import net.minecraft.world.level.Level;
|
||||
import org.anti_ad.mc.ipn.api.IPNIgnore;
|
||||
import ru.betterend.BetterEnd;
|
||||
import ru.betterend.blocks.EndStoneSmelter;
|
||||
import ru.betterend.blocks.entities.EndStoneSmelterBlockEntity;
|
||||
|
@ -25,6 +26,7 @@ import ru.betterend.client.gui.slot.SmelterFuelSlot;
|
|||
import ru.betterend.client.gui.slot.SmelterOutputSlot;
|
||||
import ru.betterend.recipe.builders.AlloyingRecipe;
|
||||
|
||||
@IPNIgnore
|
||||
public class EndStoneSmelterScreenHandler extends RecipeBookMenu<Container> {
|
||||
|
||||
public final static MenuType<EndStoneSmelterScreenHandler> HANDLER_TYPE = ScreenHandlerRegistry.registerSimple(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue