Interface RecyclingOutputsModifier
- All Superinterfaces:
Comparable<RecyclingOutputsModifier>
A modification to the
RecyclingOutputs of a recycled Item.
This can add, remove or modify individual RecyclingOutputs based on the input Item Stack (and particularly its Components).
Recipe-dependent modifications should not be done with a RecyclingOutputsModifier but by implementing IRecyclableRecipe on your Recipe.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RecyclingOutputsModifierPropagates theContaminantsof the recycled Stack to theRecyclingOutputsstatic final RecyclingOutputsModifierMinimizes the use of random chance by splitting fractions ofRecyclingOutputsinto smaller Items.static final RecyclingOutputsModifierScales theexpected amountsof all Item Stacks by theDataComponents.DAMAGEof the recycled Stack -
Method Summary
Modifier and TypeMethodDescriptiondefault intintRecyclingOutputsModifiers are applied in priority order.voidmodify(net.minecraft.world.level.Level level, net.minecraft.world.item.ItemStack input, RecyclingOutputs outputs) Modify theRecyclingOutputsbased on the Item Stack being recycled, independent of the Recipe used to craft it.
-
Field Details
-
DURABILITY
Scales theexpected amountsof all Item Stacks by theDataComponents.DAMAGEof the recycled Stack -
CONTAMINANTS
Propagates theContaminantsof the recycled Stack to theRecyclingOutputs -
DECOMPRESSION
Minimizes the use of random chance by splitting fractions ofRecyclingOutputsinto smaller Items. For example, 7.5 Iron Ingots (7 Ingots and a 50% chance of another) becomes 7 Ingots, 4 Nuggets and a 50% chance of another Nugget.
-
-
Method Details
-
modify
void modify(net.minecraft.world.level.Level level, net.minecraft.world.item.ItemStack input, RecyclingOutputs outputs) Modify theRecyclingOutputsbased on the Item Stack being recycled, independent of the Recipe used to craft it.- Parameters:
input- Will always have count1outputs-
-
getPriority
int getPriority()RecyclingOutputsModifiers are applied in priority order. -
compareTo
- Specified by:
compareToin interfaceComparable<RecyclingOutputsModifier>
-