Class NeoForgeIngredient<T extends IngredientLogic<T>>
java.lang.Object
net.darkhax.bookshelf.neoforge.impl.data.NeoForgeIngredient<T>
- All Implemented Interfaces:
net.neoforged.neoforge.common.crafting.ICustomIngredient
public class NeoForgeIngredient<T extends IngredientLogic<T>>
extends Object
implements net.neoforged.neoforge.common.crafting.ICustomIngredient
-
Constructor Summary
ConstructorsConstructorDescriptionNeoForgeIngredient(T logic, Supplier<net.neoforged.neoforge.common.crafting.IngredientType<?>> type) -
Method Summary
Modifier and TypeMethodDescription@NotNull Stream<net.minecraft.world.item.ItemStack> getItems()@NotNull net.neoforged.neoforge.common.crafting.IngredientType<?> getType()booleanisSimple()static <T extends IngredientLogic<T>>
net.neoforged.neoforge.common.crafting.IngredientType<NeoForgeIngredient<T>> makeIngredientType(net.minecraft.resources.ResourceLocation id, com.mojang.serialization.MapCodec<T> codec, net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, T> stream) booleantest(@NotNull net.minecraft.world.item.ItemStack stack) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.neoforge.common.crafting.ICustomIngredient
toVanilla
-
Constructor Details
-
NeoForgeIngredient
-
-
Method Details
-
test
public boolean test(@NotNull @NotNull net.minecraft.world.item.ItemStack stack) - Specified by:
testin interfacenet.neoforged.neoforge.common.crafting.ICustomIngredient
-
getItems
- Specified by:
getItemsin interfacenet.neoforged.neoforge.common.crafting.ICustomIngredient
-
isSimple
public boolean isSimple()- Specified by:
isSimplein interfacenet.neoforged.neoforge.common.crafting.ICustomIngredient
-
getType
@NotNull public @NotNull net.neoforged.neoforge.common.crafting.IngredientType<?> getType()- Specified by:
getTypein interfacenet.neoforged.neoforge.common.crafting.ICustomIngredient
-
makeIngredientType
public static <T extends IngredientLogic<T>> net.neoforged.neoforge.common.crafting.IngredientType<NeoForgeIngredient<T>> makeIngredientType(net.minecraft.resources.ResourceLocation id, com.mojang.serialization.MapCodec<T> codec, net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, T> stream)
-