Interface IngredientRandomizer
- All Superinterfaces:
net.minecraft.world.level.storage.loot.LootContextUser
- All Known Implementing Classes:
FromArrayIngredientRandomizer,FromItemSetIngredientRandomizer
@ParametersAreNonnullByDefault
public interface IngredientRandomizer
extends net.minecraft.world.level.storage.loot.LootContextUser
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<IngredientRandomizer> static final com.mojang.serialization.Codec<IngredientRandomizer> UseDIRECT_CODECinstead. -
Method Summary
Modifier and TypeMethodDescriptionIAdvancedIngredient<? super net.minecraft.world.item.ItemStack> generate(net.minecraft.world.level.storage.loot.LootContext context) getType()Methods inherited from interface net.minecraft.world.level.storage.loot.LootContextUser
getReferencedContextParams, validate
-
Field Details
-
TYPED_CODEC
UseDIRECT_CODECinstead. -
DIRECT_CODEC
-
-
Method Details
-
generate
IAdvancedIngredient<? super net.minecraft.world.item.ItemStack> generate(net.minecraft.world.level.storage.loot.LootContext context) -
getType
IngredientRandomizerType getType()
-