Package net.minecraft.core
Class HolderSet.ListBacked<T>
java.lang.Object
net.minecraft.core.HolderSet.ListBacked<T>
- All Implemented Interfaces:
Iterable<Holder<T>>
,HolderSet<T>
,IForgeHolderSet<T>
- Direct Known Subclasses:
HolderSet.Direct
,HolderSet.Named
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.core.HolderSet
HolderSet.Direct<T>, HolderSet.ListBacked<T>, HolderSet.Named<T>
Nested classes/interfaces inherited from interface net.minecraftforge.common.extensions.IForgeHolderSet
IForgeHolderSet.SerializationType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canSerializeIn
(HolderOwner<T> p_255876_) contents()
get
(int p_205823_) getRandomElement
(RandomSource p_235714_) iterator()
int
size()
stream()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraftforge.common.extensions.IForgeHolderSet
addInvalidationListener, serializationType
-
Constructor Details
-
ListBacked
public ListBacked()
-
-
Method Details
-
contents
-
size
public int size() -
spliterator
- Specified by:
spliterator
in interfaceIterable<T>
-
iterator
-
stream
-
getRandomElement
- Specified by:
getRandomElement
in interfaceHolderSet<T>
-
get
-
canSerializeIn
- Specified by:
canSerializeIn
in interfaceHolderSet<T>
-