Record Class OffGridTilingMetadataSection
java.lang.Object
java.lang.Record
com.petrolpark.compat.create.client.offgridtiling.OffGridTilingMetadataSection
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<OffGridTilingMetadataSection> static final Stringstatic final net.minecraft.server.packs.metadata.MetadataSectionType<OffGridTilingMetadataSection> -
Constructor Summary
ConstructorsConstructorDescriptionOffGridTilingMetadataSection(float xSize, float ySize, float scale) Creates an instance of aOffGridTilingMetadataSectionrecord 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.static final voidinit()floatscale()Returns the value of thescalerecord component.final StringtoString()Returns a string representation of this record class.floatxSize()Returns the value of thexSizerecord component.floatySize()Returns the value of theySizerecord component.
-
Field Details
-
CODEC
-
SECTION_NAME
-
TYPE
public static final net.minecraft.server.packs.metadata.MetadataSectionType<OffGridTilingMetadataSection> TYPE
-
-
Constructor Details
-
OffGridTilingMetadataSection
public OffGridTilingMetadataSection(float xSize, float ySize, float scale) Creates an instance of aOffGridTilingMetadataSectionrecord class.- Parameters:
xSize- the value for thexSizerecord componentySize- the value for theySizerecord componentscale- the value for thescalerecord component
-
-
Method Details
-
init
public static final void init() -
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 with '=='. -
xSize
public float xSize()Returns the value of thexSizerecord component.- Returns:
- the value of the
xSizerecord component
-
ySize
public float ySize()Returns the value of theySizerecord component.- Returns:
- the value of the
ySizerecord component
-
scale
public float scale()Returns the value of thescalerecord component.- Returns:
- the value of the
scalerecord component
-