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
FieldsModifier and TypeFieldDescriptionstatic final GuideCoverTextOn Folios's own book model, where its markers put it. -
Constructor Summary
ConstructorsConstructorDescriptionGuideCoverText(float x, float titleY, float subtitleY, float z, float width, @Nullable net.minecraft.resources.ResourceLocation markers) Creates an instance of aGuideCoverTextrecord 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.@Nullable net.minecraft.resources.ResourceLocationmarkers()Returns the value of themarkersrecord component.voidsubmit(@Nullable net.minecraft.resources.ResourceLocation id, com.mojang.blaze3d.vertex.PoseStack pose, SubmitNodeCollector collector, int light) floatReturns the value of thesubtitleYrecord component.floattitleY()Returns the value of thetitleYrecord component.final StringtoString()Returns a string representation of this record class.floatwidth()Returns the value of thewidthrecord component.floatx()Returns the value of thexrecord component.floatz()Returns the value of thezrecord component.
-
Field Details
-
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 aGuideCoverTextrecord class.- Parameters:
x- the value for thexrecord componenttitleY- the value for thetitleYrecord componentsubtitleY- the value for thesubtitleYrecord componentz- the value for thezrecord componentwidth- the value for thewidthrecord componentmarkers- the value for themarkersrecord 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
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
x
public float x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
titleY
public float titleY()Returns the value of thetitleYrecord component.- Returns:
- the value of the
titleYrecord component
-
subtitleY
public float subtitleY()Returns the value of thesubtitleYrecord component.- Returns:
- the value of the
subtitleYrecord component
-
z
public float z()Returns the value of thezrecord component.- Returns:
- the value of the
zrecord component
-
width
public float width()Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
markers
@Nullable public @Nullable net.minecraft.resources.ResourceLocation markers()Returns the value of themarkersrecord component.- Returns:
- the value of the
markersrecord component
-