Package net.minecraft.core
Class Holder.Reference<T>
java.lang.Object
net.minecraft.core.Holder.Reference<T>
- All Implemented Interfaces:
Holder<T>,IReverseTag<T>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface net.minecraft.core.Holder
Holder.Direct<T>, Holder.Kind, Holder.Reference<T> -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateReference(Holder.Reference.Type p_205754_, Registry<T> p_205755_, ResourceKey<T> p_205756_, T p_205757_) -
Method Summary
Modifier and TypeMethodDescriptionvoidbind(ResourceKey<T> p_205776_, T p_205777_) voidbindTags(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()booleanis(Predicate<ResourceKey<T>> p_205772_) booleanis(ResourceKey<T> p_205774_) booleanis(ResourceLocation p_205779_) booleanbooleanisBound()booleanisValidInRegistry(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, waitMethods inherited from interface net.minecraft.core.Holder
containsTag, getTagKeysMethods 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:
isValidInRegistryin interfaceHolder<T>
-
unwrap
-
unwrapKey
-
kind
-
isBound
public boolean isBound() -
bind
-
bindTags
-
tags
-
getType
-
toString
-