public interface WeightedEntityCollectionValue extends WeightedCollectionValue<WeightedEntity,WeightedEntityCollectionValue,ImmutableWeightedEntityCollectionValue>
WeightedCollectionValue
that uses a
WeightedEntity
as the element type. This is mainly used to simplify
various CollectionValue
s to use the WeightedCollectionValue
.Modifier and Type | Method and Description |
---|---|
WeightedEntityCollectionValue |
add(EntityType entityType,
Collection<DataManipulator<?,?>> entityData)
|
get
add, addAll, asImmutable, contains, containsAll, filter, getAll, isEmpty, remove, removeAll, removeAll, set, size, transform
exists, get, getDefault, getDirect, getKey
forEach, iterator, spliterator
WeightedEntityCollectionValue add(EntityType entityType, Collection<DataManipulator<?,?>> entityData)
WeightedEntity
with the provided EntityType
and a Collection
of DataManipulator
s. The default weight
will be set to 1 for the weighted entity.entityType
- The entity type of the WeightedEntity
entityData
- The extra data to provide to the weighted entity