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
Modifier and TypeInterfaceDescriptionstatic final class
static class
static class
Nested classes/interfaces inherited from interface net.minecraftforge.common.extensions.IForgeHolderSet
IForgeHolderSet.SerializationType
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canSerializeIn
(HolderOwner<T> p_255749_) boolean
static <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
<T> empty()
static <T> HolderSet.Named
<T> emptyNamed
(HolderOwner<T> p_255858_, TagKey<T> p_256459_) Deprecated.get
(int p_205798_) getRandomElement
(RandomSource p_235712_) int
size()
stream()
unwrap()
Methods inherited from interface net.minecraftforge.common.extensions.IForgeHolderSet
addInvalidationListener, serializationType
Methods 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. -
empty
-
direct
-
direct
-
direct
@SafeVarargs static <E,T> HolderSet.Direct<T> direct(Function<E, Holder<T>> p_205807_, E... p_205808_) -
direct
-