Class LodestoneInWorldRecipe<T extends net.minecraft.world.item.crafting.RecipeInput>
java.lang.Object
team.lodestar.lodestone.systems.recipe.LodestoneInWorldRecipe<T>
- All Implemented Interfaces:
net.minecraft.world.item.crafting.Recipe<T>
public abstract class LodestoneInWorldRecipe<T extends net.minecraft.world.item.crafting.RecipeInput>
extends Object
implements net.minecraft.world.item.crafting.Recipe<T>
A Recipe Class designed for In-World Crafting without the presence of an interface.
Overrides most methods that are only needed when considering an interface.
-
Field Summary
FieldsFields inherited from interface net.minecraft.world.item.crafting.Recipe
CODEC, CONDITIONAL_CODEC, STREAM_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionLodestoneInWorldRecipe(net.minecraft.world.item.crafting.RecipeSerializer<?> recipeSerializer, net.minecraft.world.item.crafting.RecipeType<?> recipeType) LodestoneInWorldRecipe(net.minecraft.world.item.crafting.RecipeSerializer<?> recipeSerializer, net.minecraft.world.item.crafting.RecipeType<?> recipeType, net.minecraft.world.item.ItemStack output) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.ItemStackbooleancanCraftInDimensions(int width, int height) net.minecraft.world.item.ItemStackgetResultItem(net.minecraft.core.HolderLookup.Provider registries) net.minecraft.world.item.crafting.RecipeSerializer<?> net.minecraft.world.item.crafting.RecipeType<?> getType()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.item.crafting.Recipe
getGroup, getIngredients, getRemainingItems, getToastSymbol, isIncomplete, isSpecial, matches, showNotification
-
Field Details
-
output
public final net.minecraft.world.item.ItemStack output
-
-
Constructor Details
-
LodestoneInWorldRecipe
public LodestoneInWorldRecipe(net.minecraft.world.item.crafting.RecipeSerializer<?> recipeSerializer, net.minecraft.world.item.crafting.RecipeType<?> recipeType, net.minecraft.world.item.ItemStack output) -
LodestoneInWorldRecipe
public LodestoneInWorldRecipe(net.minecraft.world.item.crafting.RecipeSerializer<?> recipeSerializer, net.minecraft.world.item.crafting.RecipeType<?> recipeType)
-
-
Method Details
-
assemble
public net.minecraft.world.item.ItemStack assemble(T input, net.minecraft.core.HolderLookup.Provider registries) - Specified by:
assemblein interfacenet.minecraft.world.item.crafting.Recipe<T extends net.minecraft.world.item.crafting.RecipeInput>
-
getResultItem
public net.minecraft.world.item.ItemStack getResultItem(net.minecraft.core.HolderLookup.Provider registries) - Specified by:
getResultItemin interfacenet.minecraft.world.item.crafting.Recipe<T extends net.minecraft.world.item.crafting.RecipeInput>
-
canCraftInDimensions
public boolean canCraftInDimensions(int width, int height) - Specified by:
canCraftInDimensionsin interfacenet.minecraft.world.item.crafting.Recipe<T extends net.minecraft.world.item.crafting.RecipeInput>
-
getSerializer
public net.minecraft.world.item.crafting.RecipeSerializer<?> getSerializer()- Specified by:
getSerializerin interfacenet.minecraft.world.item.crafting.Recipe<T extends net.minecraft.world.item.crafting.RecipeInput>
-
getType
public net.minecraft.world.item.crafting.RecipeType<?> getType()- Specified by:
getTypein interfacenet.minecraft.world.item.crafting.Recipe<T extends net.minecraft.world.item.crafting.RecipeInput>
-