Package net.minecraft.registry.entry
Class RegistryEntryList.Direct<T>
java.lang.Object
net.minecraft.registry.entry.RegistryEntryList.ListBacked<T>
net.minecraft.registry.entry.RegistryEntryList.Direct<T>
- All Implemented Interfaces:
- Iterable<RegistryEntry<T>>,- RegistryEntryList<T>
- Enclosing interface:
- RegistryEntryList<T>
A direct registry entry list that holds the values directly, instead of using tags.
- Mappings:
- Namespace - Name - named - net/minecraft/registry/entry/RegistryEntryList$Direct- intermediary - net/minecraft/class_6885$class_6886- official - jv$a
- 
Nested Class SummaryNested classes/interfaces inherited from interface net.minecraft.registry.entry.RegistryEntryListRegistryEntryList.Direct<T>, RegistryEntryList.ListBacked<T>, RegistryEntryList.Named<T>
- 
Field SummaryFieldsModifier and TypeFieldDescription(package private) static final RegistryEntryList.Direct<?> private final List<RegistryEntry<T>> private @Nullable Set<RegistryEntry<T>> 
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleancontains(RegistryEntry<T> entry) Returns whetherentryis in this list.booleanprotected List<RegistryEntry<T>> com.mojang.datafixers.util.Either<TagKey<T>, List<RegistryEntry<T>>> Returns the object that identifies this registry entry list.inthashCode()booleanisBound()toString()Methods inherited from class net.minecraft.registry.entry.RegistryEntryList.ListBackedget, getRandom, iterator, ownerEquals, size, spliterator, stream
- 
Field Details- 
EMPTY- Mappings:
- Namespace - Name - Mixin selector - named - EMPTY- Lnet/minecraft/registry/entry/RegistryEntryList$Direct;EMPTY:Lnet/minecraft/registry/entry/RegistryEntryList$Direct;- intermediary - field_50070- Lnet/minecraft/class_6885$class_6886;field_50070:Lnet/minecraft/class_6885$class_6886;- official - a- Ljv$a;a:Ljv$a;
 
- 
entries- Mappings:
- Namespace - Name - Mixin selector - named - entries- Lnet/minecraft/registry/entry/RegistryEntryList$Direct;entries:Ljava/util/List;- intermediary - field_36457- Lnet/minecraft/class_6885$class_6886;field_36457:Ljava/util/List;- official - b- Ljv$a;b:Ljava/util/List;
 
- 
entrySet- Mappings:
- Namespace - Name - Mixin selector - named - entrySet- Lnet/minecraft/registry/entry/RegistryEntryList$Direct;entrySet:Ljava/util/Set;- intermediary - field_36458- Lnet/minecraft/class_6885$class_6886;field_36458:Ljava/util/Set;- official - c- Ljv$a;c:Ljava/util/Set;
 
 
- 
- 
Constructor Details- 
DirectDirect(List<RegistryEntry<T>> entries) - Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/registry/entry/RegistryEntryList$Direct;<init>(Ljava/util/List;)V- intermediary - <init>- Lnet/minecraft/class_6885$class_6886;<init>(Ljava/util/List;)V- official - <init>- Ljv$a;<init>(Ljava/util/List;)V
 
 
- 
- 
Method Details- 
getEntries- Specified by:
- getEntriesin class- RegistryEntryList.ListBacked<T>
- Mappings:
- Namespace - Name - Mixin selector - named - getEntries- Lnet/minecraft/registry/entry/RegistryEntryList$ListBacked;getEntries()Ljava/util/List;- intermediary - method_40249- Lnet/minecraft/class_6885$class_6887;method_40249()Ljava/util/List;- official - g- Ljv$b;g()Ljava/util/List;
 
- 
isBoundpublic boolean isBound()- Mappings:
- Namespace - Name - Mixin selector - named - isBound- Lnet/minecraft/registry/entry/RegistryEntryList;isBound()Z- intermediary - method_62680- Lnet/minecraft/class_6885;method_62680()Z- official - c- Ljv;c()Z
 
- 
getStorageReturns the object that identifies this registry entry list.This is the tag key for a reference list, and the backing list for a direct list. - Returns:
- the object that identifies this registry entry list
- Mappings:
- Namespace - Name - Mixin selector - named - getStorage- Lnet/minecraft/registry/entry/RegistryEntryList;getStorage()Lcom/mojang/datafixers/util/Either;- intermediary - method_40248- Lnet/minecraft/class_6885;method_40248()Lcom/mojang/datafixers/util/Either;- official - d- Ljv;d()Lcom/mojang/datafixers/util/Either;
 
- 
getTagKey- Mappings:
- Namespace - Name - Mixin selector - named - getTagKey- Lnet/minecraft/registry/entry/RegistryEntryList;getTagKey()Ljava/util/Optional;- intermediary - method_45925- Lnet/minecraft/class_6885;method_45925()Ljava/util/Optional;- official - e- Ljv;e()Ljava/util/Optional;
 
- 
containsReturns whetherentryis in this list.- Returns:
- whether entryis in this list
- Mappings:
- Namespace - Name - Mixin selector - named - contains- Lnet/minecraft/registry/entry/RegistryEntryList;contains(Lnet/minecraft/registry/entry/RegistryEntry;)Z- intermediary - method_40241- Lnet/minecraft/class_6885;method_40241(Lnet/minecraft/class_6880;)Z- official - a- Ljv;a(Ljr;)Z
 
- 
toString
- 
equals- Overrides:
- equalsin class- Object
- Mappings:
- Namespace - Name - Mixin selector - named - equals- Lnet/minecraft/registry/entry/RegistryEntryList$Direct;equals(Ljava/lang/Object;)Z- intermediary - equals- Lnet/minecraft/class_6885$class_6886;equals(Ljava/lang/Object;)Z- official - equals- Ljv$a;equals(Ljava/lang/Object;)Z
 
- 
hashCodepublic int hashCode()
 
-