Class NoRemainderShaplessRecipe
java.lang.Object
net.minecraft.world.item.crafting.NormalCraftingRecipe
com.stereowalker.unionlib.world.item.crafting.NoRemainderShaplessRecipe
- All Implemented Interfaces:
net.minecraft.world.item.crafting.CraftingRecipe, net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.CraftingInput>
public class NoRemainderShaplessRecipe
extends net.minecraft.world.item.crafting.NormalCraftingRecipe
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.world.item.crafting.CraftingRecipe
net.minecraft.world.item.crafting.CraftingRecipe.CraftingBookInfoNested classes/interfaces inherited from interface net.minecraft.world.item.crafting.Recipe
net.minecraft.world.item.crafting.Recipe.BookInfo<CategoryType>, net.minecraft.world.item.crafting.Recipe.CommonInfo -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<net.minecraft.world.item.crafting.Ingredient> static final com.mojang.serialization.MapCodec<NoRemainderShaplessRecipe> protected final net.minecraft.world.item.ItemStackTemplatestatic final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, NoRemainderShaplessRecipe> Fields inherited from class net.minecraft.world.item.crafting.NormalCraftingRecipe
bookInfo, commonInfoFields inherited from interface net.minecraft.world.item.crafting.Recipe
CODEC, KEY_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionNoRemainderShaplessRecipe(net.minecraft.world.item.crafting.Recipe.CommonInfo commonInfo, net.minecraft.world.item.crafting.CraftingRecipe.CraftingBookInfo bookInfo, net.minecraft.world.item.ItemStackTemplate result, List<net.minecraft.world.item.crafting.Ingredient> ingredients) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.ItemStackassemble(net.minecraft.world.item.crafting.CraftingInput input) protected net.minecraft.world.item.crafting.PlacementInfoList<net.minecraft.world.item.crafting.display.RecipeDisplay> display()net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> getRemainingItems(net.minecraft.world.item.crafting.CraftingInput inv) net.minecraft.world.item.crafting.RecipeSerializer<? extends NoRemainderShaplessRecipe> booleanmatches(net.minecraft.world.item.crafting.CraftingInput input, net.minecraft.world.level.Level level) Methods inherited from class net.minecraft.world.item.crafting.NormalCraftingRecipe
category, group, placementInfo, showNotificationMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.item.crafting.CraftingRecipe
getType, recipeBookCategoryMethods inherited from interface net.minecraft.world.item.crafting.Recipe
isSpecial
-
Field Details
-
MAP_CODEC
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, NoRemainderShaplessRecipe> STREAM_CODEC -
result
protected final net.minecraft.world.item.ItemStackTemplate result -
ingredients
-
-
Constructor Details
-
NoRemainderShaplessRecipe
public NoRemainderShaplessRecipe(net.minecraft.world.item.crafting.Recipe.CommonInfo commonInfo, net.minecraft.world.item.crafting.CraftingRecipe.CraftingBookInfo bookInfo, net.minecraft.world.item.ItemStackTemplate result, List<net.minecraft.world.item.crafting.Ingredient> ingredients)
-
-
Method Details
-
getSerializer
public net.minecraft.world.item.crafting.RecipeSerializer<? extends NoRemainderShaplessRecipe> getSerializer()- Specified by:
getSerializerin interfacenet.minecraft.world.item.crafting.CraftingRecipe- Specified by:
getSerializerin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.CraftingInput>- Specified by:
getSerializerin classnet.minecraft.world.item.crafting.NormalCraftingRecipe
-
createPlacementInfo
protected net.minecraft.world.item.crafting.PlacementInfo createPlacementInfo()- Specified by:
createPlacementInfoin classnet.minecraft.world.item.crafting.NormalCraftingRecipe
-
matches
public boolean matches(net.minecraft.world.item.crafting.CraftingInput input, net.minecraft.world.level.Level level) -
assemble
public net.minecraft.world.item.ItemStack assemble(net.minecraft.world.item.crafting.CraftingInput input) -
display
-
getRemainingItems
public net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> getRemainingItems(net.minecraft.world.item.crafting.CraftingInput inv)
-