Record Class DummyHolder<T>
java.lang.Object
java.lang.Record
com.pixelmonmod.pixelmon.api.dummy.DummyHolder<T>
- All Implemented Interfaces:
Supplier<T>
,net.minecraft.core.Holder<T>
,net.minecraftforge.registries.tags.IReverseTag<T>
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionDummyHolder
(T value, net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> key) Creates an instance of aDummyHolder
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
canSerializeIn
(net.minecraft.core.HolderOwner<T> p_255833_) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
boolean
boolean
is
(net.minecraft.resources.ResourceLocation p_205713_) boolean
boolean
isBound()
net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>>
key()
Returns the value of thekey
record component.net.minecraft.core.Holder.Kind
kind()
tags()
final String
toString()
Returns a string representation of this record class.unwrap()
value()
Returns the value of thevalue
record component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.core.Holder
containsTag, get, getTagKeys
Methods inherited from interface net.minecraftforge.registries.tags.IReverseTag
containsTag
-
Constructor Details
-
Method Details
-
isBound
public boolean isBound()- Specified by:
isBound
in interfacenet.minecraft.core.Holder<T>
-
is
public boolean is(net.minecraft.resources.ResourceLocation p_205713_) - Specified by:
is
in interfacenet.minecraft.core.Holder<T>
-
is
- Specified by:
is
in interfacenet.minecraft.core.Holder<T>
-
is
- Specified by:
is
in interfacenet.minecraft.core.Holder<T>
-
is
- Specified by:
is
in interfacenet.minecraft.core.Holder<T>
-
tags
- Specified by:
tags
in interfacenet.minecraft.core.Holder<T>
-
unwrap
- Specified by:
unwrap
in interfacenet.minecraft.core.Holder<T>
-
unwrapKey
- Specified by:
unwrapKey
in interfacenet.minecraft.core.Holder<T>
-
kind
public net.minecraft.core.Holder.Kind kind()- Specified by:
kind
in interfacenet.minecraft.core.Holder<T>
-
canSerializeIn
- Specified by:
canSerializeIn
in 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 thevalue
record component.- Specified by:
value
in interfacenet.minecraft.core.Holder<T>
- Returns:
- the value of the
value
record component
-
key
Returns the value of thekey
record component.- Returns:
- the value of the
key
record component
-