listValues

Creates a new BiConsumer where the Key is responsible
for a List based Value. Given that the provided elements
are chosen with a Random, it's not clear that the elements will
be added in bundles or in the same iteration order.

Note that custom data is not supported through this method, use
data(Collection) or any variant thereof for applying custom data.

Type Parameters:

E - The type of elements

Parameters:

key - The key to use

elementPool - The pool of possible values

amount - The variable amount of elements to add

Returns:

The new biconsumer to apply to an itemstack builder

listValues

Creates a new BiConsumer where the Key is responsible
for a List based Value. Given that the provided elements
are chosen with a Random, it's not clear that the elements will
be added in bundles or in the same iteration order. The default variance
is provided as VariableAmount.baseWithRandomAddition(double, double)
where at the least, a single element is chosen, and at most the entire
collection is chosen.

Note that custom data is not supported through this method, use
data(Collection) or any variant thereof for applying custom data.

Type Parameters:

E - The type of elements

Parameters:

key - The key to use

elementPool - The pool of possible values

Returns:

The new biconsumer to apply to an itemstack builder

listValues

Creates a new BiConsumer where the Key is responsible
for a List based Value. Given the WeightedTable
is already generated, the values requested are only retrieved when
the generated biconsumer is called upon.

Note that custom data is not supported through this method, use
data(Collection) or any variant thereof for applying custom data.

Type Parameters:

E - The type of elements

Parameters:

key - The key to use

weightedTable - The weighted table

Returns:

The new biconsumer to apply to an itemstack builder

listValueSuppliers

Creates a new BiConsumer where the Key is responsible
for a List based Value. Given the
WeightedTable is exclusively used with Functions,
the Functions themselves are queried with a Random
and expected to present a singular element of the defined type. It's
expected that there are multiple functions to provide additional
elements for a particular key'ed ListValue.

An example usage of this can be for generating a randomized list
of Enchantments with varying enchantment levels.

Note that custom data is not supported through this method, use
data(Collection) or any variant thereof for applying custom data.

setValues

Creates a new BiConsumer where the Key is responsible
for a Set based Value. Given the Set of element
to act as a pool, the consumer will pull a random amount of the
given pool and apply it as a new Set.

Note that custom data is not supported through this method, use
data(Collection) or any variant thereof for applying custom data.

Type Parameters:

E - The type of element

Parameters:

key - The key to use

elementPool - The set of elements to use as a pool

Returns:

The new biconsumer to apply to an itemstack builder

setValues

Creates a new BiConsumer where the Key is responsible
for a Set based Value. Given the Set of
elements to act as a pool, the consumer will pull a variable amount
based on the provided VariableAmount, and apply it as a new
Set.

Note that custom data is not supported through this method, use
data(Collection) or any variant thereof for applying custom data.

data

Creates a new BiConsumer that sets a particular
DataManipulator onto an ItemStack. Note
that no validation can be performed, however the builder
will ignore unsupported data. This can be used to provide
custom data manipulators.

Parameters:

manipulator - The manipulator to apply to an itemstack

Returns:

The new biconsumer to apply to an itemstack builder

data

Creates a new BiConsumer that sets a single
DataManipulator form the provided collection of manipulators.
Note that no validation can be performed, however the builder will
ignore unsupported data. This can be used to provide custom data
manipulators. To apply multiple manipulators, use
data(Collection, VariableAmount).

Parameters:

manipulators - The pool of manipulators to use

Returns:

The new biconsumer to apply to an itemstack builder

data

Creates a new BiConsumer that provides a VariableAmount
of DataManipulators from the provided pool. Note that no
validation can be performed, however the builder will ignore unsupported
data. This can be used to provide custom data manipulators.

Parameters:

manipulators - The manipulator pool to use

rolls - The variable amount of manipulators to apply

Returns:

The new biconsumer to apply to an itemstack builder

data

Creates a new BiConsumer that provides a variable
amount of DataManipulators from the provided
WeightedTable. Note that no validation can be performed, however
the builder will ignore unsupported data. This can be used to provide
custom data manipulators.