Package com.petrolpark.client.sprite
Record Class SmallBannerSpriteSource.MetadataSection
java.lang.Object
java.lang.Record
com.petrolpark.client.sprite.SmallBannerSpriteSource.MetadataSection
- Enclosing class:
SmallBannerSpriteSource
protected static record SmallBannerSpriteSource.MetadataSection(SmallBannerSpriteSource.Splicer splicer)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<SmallBannerSpriteSource.MetadataSection> static final Stringstatic final net.minecraft.server.packs.metadata.MetadataSectionType<SmallBannerSpriteSource.MetadataSection> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates an instance of aMetadataSectionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.splicer()Returns the value of thesplicerrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
SECTION_NAME
-
TYPE
public static final net.minecraft.server.packs.metadata.MetadataSectionType<SmallBannerSpriteSource.MetadataSection> TYPE
-
-
Constructor Details
-
MetadataSection
Creates an instance of aMetadataSectionrecord class.- Parameters:
splicer- the value for thesplicerrecord component
-
-
Method Details
-
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). -
splicer
Returns the value of thesplicerrecord component.- Returns:
- the value of the
splicerrecord component
-