public static class LootPool.Builder extends java.lang.Object implements ILootFunctionConsumer<LootPool.Builder>, ILootConditionConsumer<LootPool.Builder>
Modifier and Type | Field and Description |
---|---|
private RandomValueRange |
bonusRolls |
private java.util.List<ILootCondition> |
conditions |
private java.util.List<LootEntry> |
entries |
private java.util.List<ILootFunction> |
functions |
private java.lang.String |
name |
private IRandomRange |
rolls |
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
LootPool.Builder |
acceptCondition(ILootCondition.IBuilder conditionBuilder) |
LootPool.Builder |
acceptFunction(ILootFunction.IBuilder functionBuilder) |
LootPool.Builder |
addEntry(LootEntry.Builder<?> entriesBuilder) |
LootPool.Builder |
bonusRolls(float min,
float max) |
LootPool |
build() |
LootPool.Builder |
cast() |
LootPool.Builder |
name(java.lang.String name) |
LootPool.Builder |
rolls(IRandomRange rollsIn) |
private final java.util.List<LootEntry> entries
private final java.util.List<ILootCondition> conditions
private final java.util.List<ILootFunction> functions
private IRandomRange rolls
private RandomValueRange bonusRolls
private java.lang.String name
public LootPool.Builder rolls(IRandomRange rollsIn)
public LootPool.Builder cast()
cast
in interface ILootConditionConsumer<LootPool.Builder>
cast
in interface ILootFunctionConsumer<LootPool.Builder>
public LootPool.Builder addEntry(LootEntry.Builder<?> entriesBuilder)
public LootPool.Builder acceptCondition(ILootCondition.IBuilder conditionBuilder)
acceptCondition
in interface ILootConditionConsumer<LootPool.Builder>
public LootPool.Builder acceptFunction(ILootFunction.IBuilder functionBuilder)
acceptFunction
in interface ILootFunctionConsumer<LootPool.Builder>
public LootPool.Builder name(java.lang.String name)
public LootPool.Builder bonusRolls(float min, float max)
public LootPool build()