Package net.minecraft.core
Interface HolderSet<T>
- All Superinterfaces:
 IForgeHolderSet<T>,Iterable<Holder<T>>
- All Known Subinterfaces:
 ICustomHolderSet<T>
- All Known Implementing Classes:
 AndHolderSet,AnyHolderSet,CompositeHolderSet,HolderSet.Direct,HolderSet.ListBacked,HolderSet.Named,NotHolderSet,OrHolderSet
- 
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic classstatic classNested classes/interfaces inherited from interface net.minecraftforge.common.extensions.IForgeHolderSet
IForgeHolderSet.SerializationType - 
Method Summary
Modifier and TypeMethodDescriptionbooleancanSerializeIn(HolderOwner<T> p_255749_) booleanstatic <E,T> HolderSet.Direct<T> static <E,T> HolderSet.Direct<T> direct(Function<E, Holder<T>> p_205804_, Collection<E> p_298882_) static <T> HolderSet.Direct<T>static <T> HolderSet.Direct<T>static <T> HolderSet.Named<T>emptyNamed(HolderOwner<T> p_255858_, TagKey<T> p_256459_) Deprecated.get(int p_205798_) getRandomElement(RandomSource p_235712_) intsize()stream()unwrap()Methods inherited from interface net.minecraftforge.common.extensions.IForgeHolderSet
addInvalidationListener, serializationTypeMethods inherited from interface java.lang.Iterable
forEach, iterator, spliterator 
- 
Method Details
- 
stream
 - 
size
int size() - 
unwrap
 - 
getRandomElement
 - 
get
 - 
contains
 - 
canSerializeIn
 - 
unwrapKey
 - 
emptyNamed
@Deprecated @VisibleForTesting static <T> HolderSet.Named<T> emptyNamed(HolderOwner<T> p_255858_, TagKey<T> p_256459_) Deprecated. - 
direct
 - 
direct
 - 
direct
@SafeVarargs static <E,T> HolderSet.Direct<T> direct(Function<E, Holder<T>> p_205807_, E... p_205808_)  - 
direct
 
 -