Record Class TextureKubeIcon
java.lang.Object
java.lang.Record
dev.latvian.mods.kubejs.client.icon.TextureKubeIcon
- All Implemented Interfaces:
KubeIcon
-
Field Summary
FieldsFields inherited from interface dev.latvian.mods.kubejs.client.icon.KubeIcon
CODEC, OPTIONAL_STREAM_CODEC, STREAM_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionTextureKubeIcon(net.minecraft.resources.ResourceLocation texture) Creates an instance of aTextureKubeIconrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.KubeIconType<?> getType()final inthashCode()Returns a hash code value for this object.net.minecraft.resources.ResourceLocationtexture()Returns the value of thetexturerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
TYPE
-
-
Constructor Details
-
TextureKubeIcon
public TextureKubeIcon(net.minecraft.resources.ResourceLocation texture) Creates an instance of aTextureKubeIconrecord class.- Parameters:
texture- the value for thetexturerecord component
-
-
Method Details
-
getType
-
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). -
texture
public net.minecraft.resources.ResourceLocation texture()Returns the value of thetexturerecord component.- Returns:
- the value of the
texturerecord component
-