Package net.minecraft.loot
Class LootFunction.Builder<T extends LootFunction.Builder<T>>
- java.lang.Object
-
- net.minecraft.loot.LootFunction.Builder<T>
-
- All Implemented Interfaces:
ILootFunction.IBuilder
,ILootConditionConsumer<T>
- Direct Known Subclasses:
CopyBlockState.Builder
,CopyNbt.Builder
,EnchantRandomly.Builder
,EnchantWithLevels.Builder
,ExplorationMap.Builder
,LootFunction.SimpleBuilder
,LootingEnchantBonus.Builder
,SetContents.Builder
,SetStewEffect.Builder
- Enclosing class:
- LootFunction
public abstract static class LootFunction.Builder<T extends LootFunction.Builder<T>> extends java.lang.Object implements ILootFunction.IBuilder, ILootConditionConsumer<T>
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<ILootCondition>
conditions
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected ILootCondition[]
getConditions()
protected abstract T
getThis()
T
unwrap()
T
when(ILootCondition.IBuilder p_212840_1_)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraft.loot.functions.ILootFunction.IBuilder
build
-
-
-
-
Field Detail
-
conditions
private final java.util.List<ILootCondition> conditions
-
-
Method Detail
-
when
public T when(ILootCondition.IBuilder p_212840_1_)
- Specified by:
when
in interfaceILootConditionConsumer<T extends LootFunction.Builder<T>>
-
unwrap
public final T unwrap()
- Specified by:
unwrap
in interfaceILootConditionConsumer<T extends LootFunction.Builder<T>>
-
getThis
protected abstract T getThis()
-
getConditions
protected ILootCondition[] getConditions()
-
-