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 SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic classstatic classstatic classNested classes/interfaces inherited from interface net.minecraftforge.common.extensions.IForgeHolderSetIForgeHolderSet.SerializationType
- 
Method SummaryModifier 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.IForgeHolderSetaddInvalidationListener, serializationTypeMethods inherited from interface java.lang.IterableforEach, iterator, spliterator
- 
Method Details- 
stream
- 
sizeint 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
 
-