public class SetCount extends LootFunction
Modifier and Type | Class and Description |
---|---|
static class |
SetCount.Serializer |
LootFunction.Builder<T extends LootFunction.Builder<T>>
ILootFunction.IBuilder
Modifier and Type | Field and Description |
---|---|
private IRandomRange |
countRange |
conditions
Modifier | Constructor and Description |
---|---|
private |
SetCount(ILootCondition[] p_i51222_1_,
IRandomRange p_i51222_2_) |
Modifier and Type | Method and Description |
---|---|
static LootFunction.Builder<?> |
builder(IRandomRange p_215932_0_) |
ItemStack |
doApply(ItemStack stack,
LootContext context) |
apply, builder, func_225580_a_
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
func_215858_a
getRequiredParameters
private final IRandomRange countRange
private SetCount(ILootCondition[] p_i51222_1_, IRandomRange p_i51222_2_)
public ItemStack doApply(ItemStack stack, LootContext context)
doApply
in class LootFunction
public static LootFunction.Builder<?> builder(IRandomRange p_215932_0_)