JavaScript is disabled on your browser.
@RemapPrefixForJS("kjs$")
public interface HolderMixin<T>
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods
boolean
is (Predicate <net.minecraft.resources.ResourceKey<T >> predicate)
boolean
is (net.minecraft.core.Holder<T > holder)
boolean
is (net.minecraft.resources.ResourceKey<T > resourceKey)
boolean
is (net.minecraft.resources.ResourceLocation location)
boolean
is (net.minecraft.tags.TagKey<T > tagKey)
default boolean
kjs$isTag (net.minecraft.resources.ResourceLocation tagKey)
Optional <net.minecraft.resources.ResourceKey<T >>
Method Details
is
@HideFromJS
boolean is (net.minecraft.resources.ResourceKey<T > resourceKey)
is
@Deprecated
@HideFromJS
boolean is (net.minecraft.core.Holder<T > holder)
Deprecated.
is
@Info ("Tests the resource key held by the holder using a predicate.")
@RemapForJS("test")
boolean is (Predicate <net.minecraft.resources.ResourceKey<T >> predicate)
unwrapKey
Optional <net.minecraft.resources.ResourceKey<T >> unwrapKey ()
is
@Info ("Test if the holder holds an object registered with given resource location.")
boolean is (net.minecraft.resources.ResourceLocation location)
kjs$isTag
@Info ("Test if a tag matches the object this holder holds.")
default boolean kjs$isTag (net.minecraft.resources.ResourceLocation tagKey)