Package net.minecraft.loot
Class LootEntry.Builder<T extends LootEntry.Builder<T>>
- java.lang.Object
-
- net.minecraft.loot.LootEntry.Builder<T>
-
- All Implemented Interfaces:
ILootConditionConsumer<T>
- Direct Known Subclasses:
AlternativesLootEntry.Builder
,StandaloneLootEntry.Builder
- Enclosing class:
- LootEntry
public abstract static class LootEntry.Builder<T extends LootEntry.Builder<T>> extends java.lang.Object implements 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 abstract LootEntry
build()
protected ILootCondition[]
getConditions()
protected abstract T
getThis()
AlternativesLootEntry.Builder
otherwise(LootEntry.Builder<?> p_216080_1_)
T
unwrap()
T
when(ILootCondition.IBuilder p_212840_1_)
-
-
-
Field Detail
-
conditions
private final java.util.List<ILootCondition> conditions
-
-
Method Detail
-
getThis
protected abstract T getThis()
-
when
public T when(ILootCondition.IBuilder p_212840_1_)
- Specified by:
when
in interfaceILootConditionConsumer<T extends LootEntry.Builder<T>>
-
unwrap
public final T unwrap()
- Specified by:
unwrap
in interfaceILootConditionConsumer<T extends LootEntry.Builder<T>>
-
getConditions
protected ILootCondition[] getConditions()
-
otherwise
public AlternativesLootEntry.Builder otherwise(LootEntry.Builder<?> p_216080_1_)
-
build
public abstract LootEntry build()
-
-