Package net.minecraft.core
Class HolderSet.ListBacked<T>
java.lang.Object
net.minecraft.core.HolderSet.ListBacked<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
(Random p_205825_) boolean
isValidInRegistry
(Registry<T> p_211043_) iterator()
int
size()
stream()
-
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>
-