Class ImbuementAltarRecipe
java.lang.Object
com.binaris.wizardry.content.recipe.ImbuementAltarRecipe
- All Implemented Interfaces:
net.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>
public class ImbuementAltarRecipe
extends Object
implements net.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionImbuementAltarRecipe(net.minecraft.resources.ResourceLocation id, @Nullable net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient> receptacleIngredients, net.minecraft.world.item.crafting.Ingredient centerIngredient, net.minecraft.world.item.ItemStack output, @Nullable List<net.minecraft.tags.TagKey<net.minecraft.world.item.Item>> poll, @Nullable LinkedHashMap<net.minecraft.tags.TagKey<net.minecraft.world.item.Item>, net.minecraft.world.item.ItemStack> results) ImbuementAltarRecipe(net.minecraft.resources.ResourceLocation id, net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient> receptacleIngredients, net.minecraft.world.item.crafting.Ingredient centerIngredient, net.minecraft.world.item.ItemStack output) -
Method Summary
Modifier and TypeMethodDescription@NotNull net.minecraft.world.item.ItemStackassemble(@NotNull net.minecraft.world.Container container, @NotNull net.minecraft.core.RegistryAccess access) booleancanCraftInDimensions(int width, int height) net.minecraft.world.item.crafting.Ingredient@NotNull net.minecraft.resources.ResourceLocationgetId()@Nullable ElementgetPollElement(net.minecraft.util.RandomSource random, net.minecraft.world.item.ItemStack[] receptacleStacks) net.minecraft.world.item.ItemStackgetRandomResult(net.minecraft.util.RandomSource random, net.minecraft.world.item.ItemStack[] receptacleStacks) @Nullable net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient>net.minecraft.world.item.ItemStackgetResultForElement(@Nullable Element element, net.minecraft.util.RandomSource random, net.minecraft.world.item.ItemStack[] receptacleStacks) @NotNull net.minecraft.world.item.ItemStackgetResultItem(@NotNull net.minecraft.core.RegistryAccess access) @NotNull net.minecraft.world.item.crafting.RecipeSerializer<?>@NotNull net.minecraft.world.item.crafting.RecipeType<?>getType()booleanhasPoll()static booleanisReceptacleItem(net.minecraft.world.level.Level level, net.minecraft.world.item.ItemStack stack) booleanbooleanmatches(@NotNull net.minecraft.world.Container container, @NotNull net.minecraft.world.level.Level level) booleanmatches(net.minecraft.world.item.ItemStack centerStack, net.minecraft.world.item.ItemStack[] receptacleStacks) @Nullable net.minecraft.tags.TagKey<net.minecraft.world.item.Item>rollWinner(net.minecraft.util.RandomSource random, net.minecraft.world.item.ItemStack[] receptacleStacks) 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, showNotification
-
Constructor Details
-
ImbuementAltarRecipe
public ImbuementAltarRecipe(net.minecraft.resources.ResourceLocation id, net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient> receptacleIngredients, net.minecraft.world.item.crafting.Ingredient centerIngredient, net.minecraft.world.item.ItemStack output) -
ImbuementAltarRecipe
public ImbuementAltarRecipe(net.minecraft.resources.ResourceLocation id, @Nullable @Nullable net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient> receptacleIngredients, net.minecraft.world.item.crafting.Ingredient centerIngredient, net.minecraft.world.item.ItemStack output, @Nullable @Nullable List<net.minecraft.tags.TagKey<net.minecraft.world.item.Item>> poll, @Nullable @Nullable LinkedHashMap<net.minecraft.tags.TagKey<net.minecraft.world.item.Item>, net.minecraft.world.item.ItemStack> results)
-
-
Method Details
-
matches
public boolean matches(net.minecraft.world.item.ItemStack centerStack, net.minecraft.world.item.ItemStack[] receptacleStacks) -
matches
public boolean matches(@NotNull @NotNull net.minecraft.world.Container container, @NotNull @NotNull net.minecraft.world.level.Level level) - Specified by:
matchesin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>
-
assemble
@NotNull public @NotNull net.minecraft.world.item.ItemStack assemble(@NotNull @NotNull net.minecraft.world.Container container, @NotNull @NotNull net.minecraft.core.RegistryAccess access) - 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
@NotNull public @NotNull net.minecraft.world.item.ItemStack getResultItem(@NotNull @NotNull net.minecraft.core.RegistryAccess access) - Specified by:
getResultItemin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>
-
getId
@NotNull public @NotNull net.minecraft.resources.ResourceLocation getId()- Specified by:
getIdin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>
-
getSerializer
@NotNull public @NotNull net.minecraft.world.item.crafting.RecipeSerializer<?> getSerializer()- Specified by:
getSerializerin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>
-
getType
@NotNull public @NotNull net.minecraft.world.item.crafting.RecipeType<?> getType()- Specified by:
getTypein interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>
-
isSpecial
public boolean isSpecial()- Specified by:
isSpecialin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>
-
getReceptacleIngredients
@Nullable public @Nullable net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient> getReceptacleIngredients() -
getCenterIngredient
public net.minecraft.world.item.crafting.Ingredient getCenterIngredient() -
isReceptacleItem
public static boolean isReceptacleItem(net.minecraft.world.level.Level level, net.minecraft.world.item.ItemStack stack) -
hasPoll
public boolean hasPoll() -
rollWinner
@Nullable public @Nullable net.minecraft.tags.TagKey<net.minecraft.world.item.Item> rollWinner(net.minecraft.util.RandomSource random, net.minecraft.world.item.ItemStack[] receptacleStacks) -
getRandomResult
public net.minecraft.world.item.ItemStack getRandomResult(net.minecraft.util.RandomSource random, net.minecraft.world.item.ItemStack[] receptacleStacks) -
getPollElement
@Nullable public @Nullable Element getPollElement(net.minecraft.util.RandomSource random, net.minecraft.world.item.ItemStack[] receptacleStacks) -
getResultForElement
public net.minecraft.world.item.ItemStack getResultForElement(@Nullable @Nullable Element element, net.minecraft.util.RandomSource random, net.minecraft.world.item.ItemStack[] receptacleStacks)
-