Package net.minecraft.loot.functions
Class EnchantWithLevels.Builder
- java.lang.Object
-
- net.minecraft.loot.LootFunction.Builder<EnchantWithLevels.Builder>
-
- net.minecraft.loot.functions.EnchantWithLevels.Builder
-
- All Implemented Interfaces:
ILootFunction.IBuilder
,ILootConditionConsumer<EnchantWithLevels.Builder>
- Enclosing class:
- EnchantWithLevels
public static class EnchantWithLevels.Builder extends LootFunction.Builder<EnchantWithLevels.Builder>
-
-
Field Summary
Fields Modifier and Type Field Description private IRandomRange
levels
private boolean
treasure
-
Constructor Summary
Constructors Constructor Description Builder(IRandomRange p_i51494_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EnchantWithLevels.Builder
allowTreasure()
ILootFunction
build()
protected EnchantWithLevels.Builder
getThis()
-
Methods inherited from class net.minecraft.loot.LootFunction.Builder
getConditions, unwrap, when
-
-
-
-
Field Detail
-
levels
private final IRandomRange levels
-
treasure
private boolean treasure
-
-
Constructor Detail
-
Builder
public Builder(IRandomRange p_i51494_1_)
-
-
Method Detail
-
getThis
protected EnchantWithLevels.Builder getThis()
- Specified by:
getThis
in classLootFunction.Builder<EnchantWithLevels.Builder>
-
allowTreasure
public EnchantWithLevels.Builder allowTreasure()
-
build
public ILootFunction build()
-
-