Package ml.pluto7073.pdapi.recipes
Record Class InProgressItemRecipe
java.lang.Object
java.lang.Record
ml.pluto7073.pdapi.recipes.InProgressItemRecipe
- All Implemented Interfaces:
net.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>
public record InProgressItemRecipe(net.minecraft.resources.ResourceLocation id, net.minecraft.world.item.crafting.Ingredient base, net.minecraft.world.item.ItemStack result)
extends Record
implements net.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionInProgressItemRecipe(net.minecraft.resources.ResourceLocation id, net.minecraft.world.item.crafting.Ingredient base, net.minecraft.world.item.ItemStack result) Constructs a new Recipe for an In Progress item -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.ItemStackassemble(net.minecraft.world.Container inventory, net.minecraft.core.RegistryAccess registryManager) net.minecraft.world.item.crafting.Ingredientbase()Returns the value of thebaserecord component.booleancanCraftInDimensions(int width, int height) final booleanIndicates whether some other object is "equal to" this one.net.minecraft.resources.ResourceLocationgetId()net.minecraft.world.item.ItemStackgetResultItem(net.minecraft.core.RegistryAccess registryManager) net.minecraft.world.item.crafting.RecipeSerializer<?> net.minecraft.world.item.crafting.RecipeType<?> getType()final inthashCode()Returns a hash code value for this object.net.minecraft.resources.ResourceLocationid()Returns the value of theidrecord component.booleanmatches(net.minecraft.world.Container inventory, net.minecraft.world.level.Level world) net.minecraft.world.item.ItemStackresult()Returns the value of theresultrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.item.crafting.Recipe
getGroup, getIngredients, getRemainingItems, getToastSymbol, isIncomplete, isSpecial, showNotification
-
Constructor Details
-
InProgressItemRecipe
public InProgressItemRecipe(net.minecraft.resources.ResourceLocation id, net.minecraft.world.item.crafting.Ingredient base, net.minecraft.world.item.ItemStack result) Constructs a new Recipe for an In Progress item- Parameters:
id- The recipe IDbase- The base ingredient to convertresult- The resulting in progress AbstractCustomizableDrinkItem
-
-
Method Details
-
matches
public boolean matches(net.minecraft.world.Container inventory, net.minecraft.world.level.Level world) - Specified by:
matchesin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>
-
assemble
public net.minecraft.world.item.ItemStack assemble(net.minecraft.world.Container inventory, net.minecraft.core.RegistryAccess registryManager) - Specified by:
assemblein interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>
-
canCraftInDimensions
public boolean canCraftInDimensions(int width, int height) - Specified by:
canCraftInDimensionsin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>
-
getResultItem
public net.minecraft.world.item.ItemStack getResultItem(net.minecraft.core.RegistryAccess registryManager) - Specified by:
getResultItemin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>
-
getId
public net.minecraft.resources.ResourceLocation getId()- Specified by:
getIdin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>
-
getSerializer
public net.minecraft.world.item.crafting.RecipeSerializer<?> getSerializer()- Specified by:
getSerializerin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>
-
getType
public net.minecraft.world.item.crafting.RecipeType<?> getType()- Specified by:
getTypein interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
id
public net.minecraft.resources.ResourceLocation id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
base
public net.minecraft.world.item.crafting.Ingredient base()Returns the value of thebaserecord component.- Returns:
- the value of the
baserecord component
-
result
public net.minecraft.world.item.ItemStack result()Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-