Class OutOfTagIngredientRandomizer
java.lang.Object
com.petrolpark.recipe.ingredient.randomizer.OutOfTagIngredientRandomizer
- All Implemented Interfaces:
IngredientRandomizer,net.minecraft.world.level.storage.loot.LootContextUser
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal net.minecraft.tags.TagKey<net.minecraft.world.item.Item>Fields inherited from interface com.petrolpark.recipe.ingredient.randomizer.IngredientRandomizer
CODEC -
Constructor Summary
ConstructorsConstructorDescriptionOutOfTagIngredientRandomizer(net.minecraft.tags.TagKey<net.minecraft.world.item.Item> tag) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.level.storage.loot.LootContextUser
getReferencedContextParams, validate
-
Field Details
-
tag
public final net.minecraft.tags.TagKey<net.minecraft.world.item.Item> tag
-
-
Constructor Details
-
OutOfTagIngredientRandomizer
public OutOfTagIngredientRandomizer(net.minecraft.tags.TagKey<net.minecraft.world.item.Item> tag)
-
-
Method Details
-
generate
public net.minecraft.world.item.crafting.Ingredient generate(net.minecraft.world.level.storage.loot.LootContext context) - Specified by:
generatein interfaceIngredientRandomizer
-
getType
- Specified by:
getTypein interfaceIngredientRandomizer
-