Record Class GuideCoverText

java.lang.Object
java.lang.Record
net.ixdarklord.folios.internal.client.GuideCoverText

public record GuideCoverText(float x, float titleY, float subtitleY, float z, float width, @Nullable net.minecraft.resources.ResourceLocation markers) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final GuideCoverText
    On Folios's own book model, where its markers put it.
  • Constructor Summary

    Constructors
    Constructor
    Description
    GuideCoverText(float x, float titleY, float subtitleY, float z, float width, @Nullable net.minecraft.resources.ResourceLocation markers)
    Creates an instance of a GuideCoverText record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    @Nullable net.minecraft.resources.ResourceLocation
    Returns the value of the markers record component.
    void
    submit(@Nullable net.minecraft.resources.ResourceLocation id, com.mojang.blaze3d.vertex.PoseStack pose, SubmitNodeCollector collector, int light)
     
    float
    Returns the value of the subtitleY record component.
    float
    Returns the value of the titleY record component.
    final String
    Returns a string representation of this record class.
    float
    Returns the value of the width record component.
    float
    x()
    Returns the value of the x record component.
    float
    z()
    Returns the value of the z record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • DEFAULT

      public static final GuideCoverText DEFAULT
      On Folios's own book model, where its markers put it.
  • Constructor Details

    • GuideCoverText

      public GuideCoverText(float x, float titleY, float subtitleY, float z, float width, @Nullable @Nullable net.minecraft.resources.ResourceLocation markers)
      Creates an instance of a GuideCoverText record class.
      Parameters:
      x - the value for the x record component
      titleY - the value for the titleY record component
      subtitleY - the value for the subtitleY record component
      z - the value for the z record component
      width - the value for the width record component
      markers - the value for the markers record component
  • Method Details

    • submit

      public void submit(@Nullable @Nullable net.minecraft.resources.ResourceLocation id, com.mojang.blaze3d.vertex.PoseStack pose, SubmitNodeCollector collector, int light)
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • x

      public float x()
      Returns the value of the x record component.
      Returns:
      the value of the x record component
    • titleY

      public float titleY()
      Returns the value of the titleY record component.
      Returns:
      the value of the titleY record component
    • subtitleY

      public float subtitleY()
      Returns the value of the subtitleY record component.
      Returns:
      the value of the subtitleY record component
    • z

      public float z()
      Returns the value of the z record component.
      Returns:
      the value of the z record component
    • width

      public float width()
      Returns the value of the width record component.
      Returns:
      the value of the width record component
    • markers

      @Nullable public @Nullable net.minecraft.resources.ResourceLocation markers()
      Returns the value of the markers record component.
      Returns:
      the value of the markers record component