Record Class FoliosCoverText.Unbaked
java.lang.Object
java.lang.Record
net.ixdarklord.folios.internal.client.FoliosCoverText.Unbaked
- All Implemented Interfaces:
net.minecraft.client.renderer.special.SpecialModelRenderer.Unbaked<net.minecraft.resources.Identifier>
- Enclosing class:
FoliosCoverText
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<FoliosCoverText.Unbaked> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.client.renderer.special.SpecialModelRenderer<net.minecraft.resources.Identifier> bake(net.minecraft.client.renderer.special.SpecialModelRenderer.BakingContext context) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Optional<net.minecraft.resources.Identifier> markers()Returns the value of themarkersrecord component.floatReturns the value of thesubtitleYrecord component.floattitleY()Returns the value of thetitleYrecord component.final StringtoString()Returns a string representation of this record class.com.mojang.serialization.MapCodec<FoliosCoverText.Unbaked> type()floatwidth()Returns the value of thewidthrecord component.floatx()Returns the value of thexrecord component.floatz()Returns the value of thezrecord component.
-
Field Details
-
MAP_CODEC
-
-
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 aUnbakedrecord 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
-
bake
public net.minecraft.client.renderer.special.SpecialModelRenderer<net.minecraft.resources.Identifier> bake(net.minecraft.client.renderer.special.SpecialModelRenderer.BakingContext context) - Specified by:
bakein interfacenet.minecraft.client.renderer.special.SpecialModelRenderer.Unbaked<net.minecraft.resources.Identifier>
-
type
- Specified by:
typein interfacenet.minecraft.client.renderer.special.SpecialModelRenderer.Unbaked<net.minecraft.resources.Identifier>
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
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
Returns the value of themarkersrecord component.- Returns:
- the value of the
markersrecord component
-