Package net.minecraft.core
Interface Holder<T>
- All Superinterfaces:
IReverseTag<T>
- All Known Implementing Classes:
Holder.Direct
,Holder.Reference
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final record
static enum
static class
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
containsTag
(TagKey<T> key) static <T> Holder<T>
direct
(T p_205710_) static <T> Holder<T>
hackyErase
(Holder<? extends T> p_205707_) boolean
is
(Predicate<ResourceKey<T>> p_205711_) boolean
is
(ResourceKey<T> p_205712_) boolean
is
(ResourceLocation p_205713_) boolean
boolean
isBound()
boolean
isValidInRegistry
(Registry<T> p_205708_) kind()
tags()
com.mojang.datafixers.util.Either<ResourceKey<T>,
T> unwrap()
value()
Methods inherited from interface net.minecraftforge.registries.tags.IReverseTag
containsTag
-
Method Details
-
containsTag
- Specified by:
containsTag
in interfaceIReverseTag<T>
-
getTagKeys
- Specified by:
getTagKeys
in interfaceIReverseTag<T>
-
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() -
isValidInRegistry
-
direct
-
hackyErase
-