Package net.minecraft.core
Interface Holder<T>
- All Superinterfaces:
 IWithData<T>
- All Known Implementing Classes:
 DeferredBlock,DeferredHolder,DeferredItem,Holder.Direct,Holder.Reference,RegistrySetBuilder.LazyHolder
- 
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordstatic enumstatic class - 
Method Summary
Modifier and TypeMethodDescriptionbooleancanSerializeIn(HolderOwner<T> p_255833_) static <T> Holder<T>direct(T p_205710_) booleanis(Predicate<ResourceKey<T>> p_205711_) booleanis(ResourceKey<T> p_205712_) booleanis(ResourceLocation p_205713_) booleanbooleanisBound()kind()tags()com.mojang.datafixers.util.Either<ResourceKey<T>,T> unwrap()value() 
- 
Method Details
- 
value
T value() - 
isBound
boolean isBound() - 
is
 - 
is
 - 
is
 - 
is
 - 
tags
 - 
unwrap
com.mojang.datafixers.util.Either<ResourceKey<T>,T> unwrap() - 
unwrapKey
Optional<ResourceKey<T>> unwrapKey() - 
kind
Holder.Kind kind() - 
canSerializeIn
 - 
direct
 
 -