Package net.minecraft.core
Class Holder.Reference<T>
java.lang.Object
net.minecraft.core.Holder.Reference<T>
- All Implemented Interfaces:
Supplier<T>
,Holder<T>
,IReverseTag<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.core.Holder
Holder.Direct<T>, Holder.Kind, Holder.Reference<T>
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprivate
Reference
(Holder.Reference.Type p_205754_, Registry<T> p_205755_, ResourceKey<T> p_205756_, T p_205757_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
bind
(ResourceKey<T> p_205776_, T p_205777_) void
bindTags
(Collection<TagKey<T>> p_205770_) static <T> Holder.Reference<T>
createIntrusive
(Registry<T> p_205764_, T p_205765_) Deprecated.static <T> Holder.Reference<T>
createStandAlone
(Registry<T> p_205767_, ResourceKey<T> p_205768_) getType()
boolean
is
(Predicate<ResourceKey<T>> p_205772_) boolean
is
(ResourceKey<T> p_205774_) boolean
is
(ResourceLocation p_205779_) boolean
boolean
isBound()
boolean
isValidInRegistry
(Registry<T> p_205762_) key()
kind()
tags()
toString()
com.mojang.datafixers.util.Either<ResourceKey<T>,
T> unwrap()
value()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.core.Holder
containsTag, get, getTagKeys
Methods inherited from interface net.minecraftforge.registries.tags.IReverseTag
containsTag
-
Field Details
-
registry
-
tags
-
type
-
key
-
value
-
-
Constructor Details
-
Reference
private Reference(Holder.Reference.Type p_205754_, Registry<T> p_205755_, @Nullable ResourceKey<T> p_205756_, @Nullable T p_205757_)
-
-
Method Details
-
createStandAlone
public static <T> Holder.Reference<T> createStandAlone(Registry<T> p_205767_, ResourceKey<T> p_205768_) -
createIntrusive
@Deprecated public static <T> Holder.Reference<T> createIntrusive(Registry<T> p_205764_, @Nullable T p_205765_) Deprecated. -
key
-
value
-
is
-
is
-
is
-
is
-
isValidInRegistry
- Specified by:
isValidInRegistry
in interfaceHolder<T>
-
unwrap
-
unwrapKey
-
kind
-
isBound
public boolean isBound() -
bind
-
bindTags
-
tags
-
getType
-
toString
-