net.minecraft.core

public class Holder$Reference<T>

implements Holder<T>

gs$c
net.minecraft.core.Holder$Reference
net.minecraft.class_6880$class_6883
net.minecraft.util.registry.RegistryEntry$Reference
net.minecraft.src.C_203228_$C_203231_
net.minecraft.core.Holder$c

Field summary

Modifier and TypeField
private final Registry<T>
a
registry
field_36449
registry
f_205748_
private Set<TagKey<T>>
b
tags
field_36450
tags
f_205749_
private final Holder$Reference$Type
c
type
field_36451
referenceType
f_205750_
private ResourceKey<T>
d
key
field_36452
registryKey
f_205751_
private T
e
value
field_36453
value
f_205752_

Constructor summary

ModifierConstructor
private (Holder$Reference$Type referenceType, Registry<T> registry, ResourceKey<T> registryKey, T value)

Method summary

Modifier and TypeMethod
public static <T> Holder$Reference<T>
a(hb<T> arg0, ys<T> arg1)
createStandAlone(Registry<T> arg0, ResourceKey<T> arg1)
method_40234(class_2378<T> arg0, class_5321<T> arg1)
standAlone(Registry<T> registry, RegistryKey<T> registryKey)
m_205766_(C_4705_<T> p_205767_, C_5264_<T> p_205768_)
public static <T> Holder$Reference<T>
a(hb<T> arg0, T arg1)
createIntrusive(Registry<T> arg0, T arg1)
method_40233(class_2378<T> arg0, T arg1)
intrusive(Registry<T> registry, T registryKey)
m_205763_(C_4705_<T> p_205764_, T p_205765_)
public ResourceKey<T>
g()
key()
method_40237()
registryKey()
m_205785_()
public T
a()
value()
comp_349()
value()
m_203334_()
public boolean
a(yt arg0)
is(ResourceLocation arg0)
method_40226(class_2960 arg0)
matchesId(Identifier arg0)
m_203373_(C_5265_ arg0)
public boolean
a(ys<T> arg0)
is(ResourceKey<T> arg0)
method_40225(class_5321<T> arg0)
matchesKey(RegistryKey<T> arg0)
m_203565_(C_5264_<T> arg0)
public boolean
a(aif<T> arg0)
is(TagKey<T> arg0)
method_40220(class_6862<T> arg0)
isIn(TagKey<T> arg0)
m_203656_(C_203208_<T> arg0)
public boolean
a(Predicate<ys<T>> arg0)
is(Predicate<ResourceKey<T>> arg0)
method_40224(Predicate<class_5321<T>> arg0)
matches(Predicate<RegistryKey<T>> arg0)
m_203425_(Predicate<C_5264_<T>> arg0)
public boolean
a(hb<T> arg0)
isValidInRegistry(Registry<T> arg0)
method_40222(class_2378<T> arg0)
matchesRegistry(Registry<T> arg0)
m_203401_(C_4705_<T> arg0)
public com.mojang.datafixers.util.Either<ResourceKey<T>, T>
d()
unwrap()
method_40229()
getKeyOrValue()
m_203439_()
public Optional<ResourceKey<T>>
e()
unwrapKey()
method_40230()
getKey()
m_203543_()
public Holder$Kind
f()
kind()
method_40231()
getType()
m_203376_()
public boolean
b()
isBound()
method_40227()
hasKeyAndValue()
m_203633_()
void
a(ys<T> arg0, T arg1)
bind(ResourceKey<T> arg0, T arg1)
method_40236(class_5321<T> arg0, T arg1)
setKeyAndValue(RegistryKey<T> key, T value)
m_205775_(C_5264_<T> p_205777_, T arg1)
void
a(Collection<aif<T>> arg0)
bindTags(Collection<TagKey<T>> arg0)
method_40235(Collection<class_6862<T>> arg0)
setTags(Collection<TagKey<T>> tags)
m_205769_(Collection<C_203208_<T>> arg0)
public Stream<TagKey<T>>
c()
tags()
method_40228()
streamTags()
m_203616_()