Record Class GuideCoverText.Unbaked

java.lang.Object
java.lang.Record
net.ixdarklord.folios.internal.client.GuideCoverText.Unbaked
All Implemented Interfaces:
net.minecraft.client.renderer.special.SpecialModelRenderer.Unbaked<net.minecraft.resources.Identifier>
Enclosing class:
GuideCoverText

public static record GuideCoverText.Unbaked(float x, float titleY, float subtitleY, float z, float width, Optional<net.minecraft.resources.Identifier> markers) extends Record implements net.minecraft.client.renderer.special.SpecialModelRenderer.Unbaked<net.minecraft.resources.Identifier>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.MapCodec<GuideCoverText.Unbaked>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Unbaked(float x, float titleY, float subtitleY, float z, float width, Optional<net.minecraft.resources.Identifier> markers)
    Creates an instance of a Unbaked record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.client.renderer.special.SpecialModelRenderer<net.minecraft.resources.Identifier>
    bake(net.minecraft.client.renderer.special.SpecialModelRenderer.BakingContext context)
     
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    Optional<net.minecraft.resources.Identifier>
    Returns the value of the markers record component.
    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.
    com.mojang.serialization.MapCodec<GuideCoverText.Unbaked>
     
    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 Object

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

  • Constructor Details

    • Unbaked

      public Unbaked(float x, float titleY, float subtitleY, float z, float width, Optional<net.minecraft.resources.Identifier> markers)
      Creates an instance of a Unbaked 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

    • bake

      public net.minecraft.client.renderer.special.SpecialModelRenderer<net.minecraft.resources.Identifier> bake(net.minecraft.client.renderer.special.SpecialModelRenderer.BakingContext context)
      Specified by:
      bake in interface net.minecraft.client.renderer.special.SpecialModelRenderer.Unbaked<net.minecraft.resources.Identifier>
    • type

      public com.mojang.serialization.MapCodec<GuideCoverText.Unbaked> type()
      Specified by:
      type in interface net.minecraft.client.renderer.special.SpecialModelRenderer.Unbaked<net.minecraft.resources.Identifier>
    • 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 the compare method from their corresponding wrapper classes.
      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

      public Optional<net.minecraft.resources.Identifier> markers()
      Returns the value of the markers record component.
      Returns:
      the value of the markers record component