Package net.minecraft.loot.function
Class EnchantRandomlyLootFunction
java.lang.Object
net.minecraft.loot.function.ConditionalLootFunction
net.minecraft.loot.function.EnchantRandomlyLootFunction
- All Implemented Interfaces:
BiFunction<ItemStack,LootContext,ItemStack>,LootContextAware,LootFunction
public class EnchantRandomlyLootFunction extends ConditionalLootFunction
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEnchantRandomlyLootFunction.Builderstatic classEnchantRandomlyLootFunction.SerializerNested classes/interfaces inherited from class net.minecraft.loot.function.ConditionalLootFunction
ConditionalLootFunction.Joiner -
Field Summary
Fields Modifier and Type Field Description private List<Enchantment>enchantmentsprivate static LoggerLOGGERFields inherited from class net.minecraft.loot.function.ConditionalLootFunction
conditions -
Constructor Summary
Constructors Modifier Constructor Description privateEnchantRandomlyLootFunction(LootCondition[] conditions, Collection<Enchantment> enchantments) -
Method Summary
Modifier and Type Method Description static ConditionalLootFunction.Builder<?>builder()LootFunctionTypegetType()private static ItemStackmethod_26266(ItemStack itemStack, Enchantment enchantment, Random random)ItemStackprocess(ItemStack stack, LootContext context)Methods inherited from class net.minecraft.loot.function.ConditionalLootFunction
apply, builder, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiFunction
andThenMethods inherited from interface net.minecraft.loot.context.LootContextAware
getRequiredParameters
-
Field Details
-
LOGGER
-
enchantments
-
-
Constructor Details
-
EnchantRandomlyLootFunction
private EnchantRandomlyLootFunction(LootCondition[] conditions, Collection<Enchantment> enchantments)
-
-
Method Details
-
getType
-
process
- Specified by:
processin classConditionalLootFunction
-
method_26266
-
builder
-