Class ContaminatedIngredientModifier
java.lang.Object
com.petrolpark.recipe.ingredient.modifier.ContaminatedIngredientModifier
- All Implemented Interfaces:
IngredientModifier,net.minecraft.world.level.storage.loot.LootContextUser
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Contaminantfinal net.minecraft.resources.ResourceLocationFields inherited from interface com.petrolpark.recipe.ingredient.modifier.IngredientModifier
CODEC -
Constructor Summary
ConstructorsConstructorDescriptionContaminatedIngredientModifier(net.minecraft.resources.ResourceLocation contaminantRL) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToDescription(List<net.minecraft.network.chat.Component> description, net.minecraft.world.level.Level level) getContaminant(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 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
-
contaminantRL
public final net.minecraft.resources.ResourceLocation contaminantRL -
contaminant
-
-
Constructor Details
-
ContaminatedIngredientModifier
public ContaminatedIngredientModifier(net.minecraft.resources.ResourceLocation contaminantRL)
-
-
Method Details
-
getContaminant
-
test
public boolean test(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level level) - Specified by:
testin interfaceIngredientModifier
-
modifyExamples
public void modifyExamples(List<net.minecraft.world.item.ItemStack> exampleStacks, net.minecraft.world.level.Level level) - Specified by:
modifyExamplesin interfaceIngredientModifier
-
modifyCounterExamples
public void modifyCounterExamples(List<net.minecraft.world.item.ItemStack> counterExampleStacks, net.minecraft.world.level.Level level) - Specified by:
modifyCounterExamplesin interfaceIngredientModifier
-
addToDescription
public void addToDescription(List<net.minecraft.network.chat.Component> description, net.minecraft.world.level.Level level) - Specified by:
addToDescriptionin interfaceIngredientModifier
-
getType
- Specified by:
getTypein interfaceIngredientModifier
-