Record Class DummyHolder<T>
java.lang.Object
java.lang.Record
com.pixelmonmod.pixelmon.api.dummy.DummyHolder<T>
- All Implemented Interfaces:
net.minecraft.core.Holder<T>,net.neoforged.neoforge.common.extensions.IHolderExtension<T>,net.neoforged.neoforge.registries.datamaps.IWithData<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.core.Holder
net.minecraft.core.Holder.Direct<T>, net.minecraft.core.Holder.Kind, net.minecraft.core.Holder.Reference<T> -
Constructor Summary
ConstructorsConstructorDescriptionDummyHolder(T value, net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> key) Creates an instance of aDummyHolderrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleancanSerializeIn(net.minecraft.core.HolderOwner<T> p_255833_) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanbooleanbooleanbooleanis(net.minecraft.resources.ResourceLocation p_205713_) booleanbooleanisBound()net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> key()Returns the value of thekeyrecord component.net.minecraft.core.Holder.Kindkind()tags()final StringtoString()Returns a string representation of this record class.unwrap()value()Returns the value of thevaluerecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.core.Holder
getRegisteredNameMethods inherited from interface net.neoforged.neoforge.common.extensions.IHolderExtension
getDelegate, getKey, unwrapLookupMethods inherited from interface net.neoforged.neoforge.registries.datamaps.IWithData
getData
-
Constructor Details
-
Method Details
-
isBound
public boolean isBound()- Specified by:
isBoundin interfacenet.minecraft.core.Holder<T>
-
is
public boolean is(net.minecraft.resources.ResourceLocation p_205713_) - Specified by:
isin interfacenet.minecraft.core.Holder<T>
-
is
- Specified by:
isin interfacenet.minecraft.core.Holder<T>
-
is
- Specified by:
isin interfacenet.minecraft.core.Holder<T>
-
is
- Specified by:
isin interfacenet.minecraft.core.Holder<T>
-
is
- Specified by:
isin interfacenet.minecraft.core.Holder<T>
-
tags
- Specified by:
tagsin interfacenet.minecraft.core.Holder<T>
-
unwrap
- Specified by:
unwrapin interfacenet.minecraft.core.Holder<T>
-
unwrapKey
- Specified by:
unwrapKeyin interfacenet.minecraft.core.Holder<T>
-
kind
public net.minecraft.core.Holder.Kind kind()- Specified by:
kindin interfacenet.minecraft.core.Holder<T>
-
canSerializeIn
- Specified by:
canSerializeInin interfacenet.minecraft.core.Holder<T>
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
value
Returns the value of thevaluerecord component.- Specified by:
valuein interfacenet.minecraft.core.Holder<T>- Returns:
- the value of the
valuerecord component
-
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-