Record Class GuideBook.Textures
java.lang.Object
java.lang.Record
net.ixdarklord.folios.api.client.GuideBook.Textures
- Record Components:
page- the paper of each page, stretched to it (136 by 180)frame- drawn over the paper, under what is on the page; its alpha is how strong each part iscover- the cover around the pages, and a handheld book's boardstab- a ribbon tab, its tip at the right; stretched to the tab's length, tinted by its category's colourtabPlate- drawn on a tab under its icon, tinted with the paper's colour, so the icon reads on any ribbonbackdrop- drawn over the whole screen behind a screen book; null for the world, dimmed
- Enclosing class:
GuideBook
public static record GuideBook.Textures(net.minecraft.resources.Identifier page, net.minecraft.resources.Identifier frame, net.minecraft.resources.Identifier cover, net.minecraft.resources.Identifier tab, net.minecraft.resources.Identifier tabPlate, @Nullable net.minecraft.resources.Identifier backdrop)
extends Record
The texture layers a book is drawn with, in both styles:
"textures" in book.json, each a texture path.
They are grey or white and tinted by the book's colours (paper by the paper's colour in light or dark mode, the
cover by "cover", the frame by the page's lines, tabs by their state), so one set suits any book.
Folios's own are at folios:textures/book/: a resource pack replacing them changes every book
that doesn't name its own.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTextures(net.minecraft.resources.Identifier page, net.minecraft.resources.Identifier frame, net.minecraft.resources.Identifier cover, net.minecraft.resources.Identifier tab, net.minecraft.resources.Identifier tabPlate, @Nullable net.minecraft.resources.Identifier backdrop) Creates an instance of aTexturesrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable net.minecraft.resources.Identifierbackdrop()Returns the value of thebackdroprecord component.net.minecraft.resources.Identifiercover()Returns the value of thecoverrecord component.final booleanIndicates whether some other object is "equal to" this one.net.minecraft.resources.Identifierframe()Returns the value of theframerecord component.final inthashCode()Returns a hash code value for this object.net.minecraft.resources.Identifierpage()Returns the value of thepagerecord component.net.minecraft.resources.Identifiertab()Returns the value of thetabrecord component.net.minecraft.resources.IdentifiertabPlate()Returns the value of thetabPlaterecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
DEFAULT
-
-
Constructor Details
-
Textures
public Textures(net.minecraft.resources.Identifier page, net.minecraft.resources.Identifier frame, net.minecraft.resources.Identifier cover, net.minecraft.resources.Identifier tab, net.minecraft.resources.Identifier tabPlate, @Nullable net.minecraft.resources.Identifier backdrop) Creates an instance of aTexturesrecord class.- Parameters:
page- the value for thepagerecord componentframe- the value for theframerecord componentcover- the value for thecoverrecord componenttab- the value for thetabrecord componenttabPlate- the value for thetabPlaterecord componentbackdrop- the value for thebackdroprecord component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
page
-
frame
-
cover
-
tab
-
tabPlate
-
backdrop
-