Interface IngredientModifier
- All Superinterfaces:
net.minecraft.world.level.storage.loot.LootContextUser
- All Known Implementing Classes:
ContaminatedIngredientModifier,PassIngredientModifier
public interface IngredientModifier
extends net.minecraft.world.level.storage.loot.LootContextUser
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToDescription(List<net.minecraft.network.chat.Component> description, net.minecraft.world.level.Level level) getType()voidmodifyCounterExamples(List<net.minecraft.world.item.ItemStack> counterExampleStacks, net.minecraft.world.level.Level level) voidmodifyExamples(List<net.minecraft.world.item.ItemStack> exampleStacks, net.minecraft.world.level.Level level) booleantest(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level level) Methods inherited from interface net.minecraft.world.level.storage.loot.LootContextUser
getReferencedContextParams, validate
-
Field Details
-
CODEC
-
-
Method Details
-
test
boolean test(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level level) -
modifyExamples
void modifyExamples(List<net.minecraft.world.item.ItemStack> exampleStacks, net.minecraft.world.level.Level level) -
modifyCounterExamples
void modifyCounterExamples(List<net.minecraft.world.item.ItemStack> counterExampleStacks, net.minecraft.world.level.Level level) -
addToDescription
void addToDescription(List<net.minecraft.network.chat.Component> description, net.minecraft.world.level.Level level) -
getType
IngredientModifierType getType() -
createGsonAdapter
static ForgeRegistryObjectGSONAdapter<IngredientModifier,IngredientModifierType> createGsonAdapter()
-