Package net.minecraft.core
Interface Holder<T>
- All Superinterfaces:
IWithData<T>
- All Known Implementing Classes:
DeferredBlock
,DeferredBlockBuilder
,DeferredEntityTypeBuilder
,DeferredHolder
,DeferredItem
,DeferredItemBuilder
,Holder.Direct
,Holder.Reference
,RegistrySetBuilder.LazyHolder
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final record
static enum
static class
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canSerializeIn
(HolderOwner<T> p_255833_) static <T> Holder
<T> direct
(T p_205710_) Returns the holder that this holder wraps.default String
boolean
is
(Predicate<ResourceKey<T>> p_205711_) boolean
Deprecated.boolean
is
(ResourceKey<T> p_205712_) boolean
is
(ResourceLocation p_205713_) boolean
boolean
isBound()
kind()
tags()
com.mojang.datafixers.util.Either
<ResourceKey<T>, T> unwrap()
value()
-
Method Details
-
value
T value() -
isBound
boolean isBound() -
is
-
is
-
is
-
is
-
is
Deprecated. -
tags
-
unwrap
com.mojang.datafixers.util.Either<ResourceKey<T>,T> unwrap() -
unwrapKey
Optional<ResourceKey<T>> unwrapKey() -
kind
Holder.Kind kind() -
canSerializeIn
-
getRegisteredName
-
getDelegate
Returns the holder that this holder wraps. Useful for holders that delegate to another holder.- Returns:
- the holder that this holder wraps
-
direct
-