Merge branch '1.18.2' into 1.19

This commit is contained in:
Max
2022-06-16 12:03:36 +02:00
6 changed files with 96 additions and 2 deletions

View File

@@ -19,6 +19,7 @@
package dev.architectury.hooks.item;
import dev.architectury.injectables.annotations.ExpectPlatform;
import net.minecraft.server.level.ServerPlayer;
import net.minecraft.sounds.SoundEvents;
import net.minecraft.sounds.SoundSource;
@@ -53,4 +54,28 @@ public final class ItemStackHooks {
}
}
}
/**
* Returns whether the given item stack has a remaining item after crafting.
* This method is stack-aware only on Forge.
*
* @param stack the item stack
* @return whether the given item stack has a remaining item after crafting
*/
@ExpectPlatform
public static boolean hasCraftingRemainingItem(ItemStack stack) {
throw new AssertionError();
}
/**
* Returns the remaining item for a given item stack after crafting.
* This method is stack-aware only on Forge.
*
* @param stack the item stack
* @return the remaining item for a given item stack after crafting
*/
@ExpectPlatform
public static ItemStack getCraftingRemainingItem(ItemStack stack) {
throw new AssertionError();
}
}