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>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncontents()
get
(int p_205823_) getRandomElement
(RandomSource p_235714_) boolean
isValidInRegistry
(Registry<T> p_211043_) 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
-
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
-
isValidInRegistry
- Specified by:
isValidInRegistry
in interfaceHolderSet<T>
-