Class SetItemDamageFunction
java.lang.Object
net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
net.minecraft.world.level.storage.loot.functions.SetItemDamageFunction
- All Implemented Interfaces:
- BiFunction<ItemStack,LootContext,ItemStack>,- LootItemFunction,- LootContextUser
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunctionLootItemConditionalFunction.Builder<T extends LootItemConditionalFunction.Builder<T>>, LootItemConditionalFunction.DummyBuilder
- 
Field SummaryFieldsModifier and TypeFieldDescription(package private) boolean(package private) NumberProviderprivate static org.apache.logging.log4j.LoggerFields inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunctionpredicates
- 
Constructor SummaryConstructorsConstructorDescriptionSetItemDamageFunction(LootItemCondition[] p_165427_, NumberProvider p_165428_, boolean p_165429_)
- 
Method SummaryModifier and TypeMethodDescriptionSet<LootContextParam<?>>getType()run(ItemStack p_81048_, LootContext p_81049_)static LootItemConditionalFunction.Builder<?>setDamage(NumberProvider p_165431_)static LootItemConditionalFunction.Builder<?>setDamage(NumberProvider p_165433_, boolean p_165434_)Methods inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunctionapply, simpleBuilder, validateMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiFunctionandThen
- 
Field Details- 
LOGGERprivate static final org.apache.logging.log4j.Logger LOGGER
- 
damage
- 
addfinal boolean add
 
- 
- 
Constructor Details- 
SetItemDamageFunctionSetItemDamageFunction(LootItemCondition[] p_165427_, NumberProvider p_165428_, boolean p_165429_)
 
- 
- 
Method Details- 
getType
- 
getReferencedContextParams
- 
run- Specified by:
- runin class- LootItemConditionalFunction
 
- 
setDamage
- 
setDamagepublic static LootItemConditionalFunction.Builder<?> setDamage(NumberProvider p_165433_, boolean p_165434_)
 
-