Class PlaceholderLookupProvider.UniversalLookup
java.lang.Object
net.minecraft.util.PlaceholderLookupProvider.UniversalLookup
- All Implemented Interfaces:
HolderGetter<Object>, HolderOwner<Object>
- Enclosing class:
PlaceholderLookupProvider
private class PlaceholderLookupProvider.UniversalLookup
extends Object
implements HolderGetter<Object>, HolderOwner<Object>
-
Nested Class Summary
Nested classes/interfaces inherited from interface HolderGetter
HolderGetter.Provider -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> HolderGetter<T> <T> HolderOwner<T> get(ResourceKey<Object> id) private Holder.Reference<Object> getOrCreate(ResourceKey<Object> id) private HolderSet.Named<Object> getOrCreate(TagKey<Object> id) getOrThrow(ResourceKey<Object> id) getOrThrow(TagKey<Object> id) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface HolderGetter
getRandomElementOfMethods inherited from interface HolderOwner
canSerializeIn
-
Constructor Details
-
UniversalLookup
private UniversalLookup()
-
-
Method Details
-
get
- Specified by:
getin interfaceHolderGetter<Object>
-
getOrThrow
- Specified by:
getOrThrowin interfaceHolderGetter<Object>
-
getOrCreate
-
get
- Specified by:
getin interfaceHolderGetter<Object>
-
getOrThrow
- Specified by:
getOrThrowin interfaceHolderGetter<Object>
-
getOrCreate
-
castAsLookup
-
castAsOwner
-