Package net.ixdarklord.folios.api.client
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.ResourceLocation page, net.minecraft.resources.ResourceLocation frame, net.minecraft.resources.ResourceLocation cover, net.minecraft.resources.ResourceLocation tab, net.minecraft.resources.ResourceLocation tabPlate, @Nullable net.minecraft.resources.ResourceLocation 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.ResourceLocation page, net.minecraft.resources.ResourceLocation frame, net.minecraft.resources.ResourceLocation cover, net.minecraft.resources.ResourceLocation tab, net.minecraft.resources.ResourceLocation tabPlate, @Nullable net.minecraft.resources.ResourceLocation backdrop) Creates an instance of aTexturesrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable net.minecraft.resources.ResourceLocationbackdrop()Returns the value of thebackdroprecord component.net.minecraft.resources.ResourceLocationcover()Returns the value of thecoverrecord component.final booleanIndicates whether some other object is "equal to" this one.net.minecraft.resources.ResourceLocationframe()Returns the value of theframerecord component.final inthashCode()Returns a hash code value for this object.net.minecraft.resources.ResourceLocationpage()Returns the value of thepagerecord component.net.minecraft.resources.ResourceLocationtab()Returns the value of thetabrecord component.net.minecraft.resources.ResourceLocationtabPlate()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.ResourceLocation page, net.minecraft.resources.ResourceLocation frame, net.minecraft.resources.ResourceLocation cover, net.minecraft.resources.ResourceLocation tab, net.minecraft.resources.ResourceLocation tabPlate, @Nullable @Nullable net.minecraft.resources.ResourceLocation 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
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. All components in this record class are compared withObjects::equals(Object,Object). -
page
public net.minecraft.resources.ResourceLocation page()Returns the value of thepagerecord component.- Returns:
- the value of the
pagerecord component
-
frame
public net.minecraft.resources.ResourceLocation frame()Returns the value of theframerecord component.- Returns:
- the value of the
framerecord component
-
cover
public net.minecraft.resources.ResourceLocation cover()Returns the value of thecoverrecord component.- Returns:
- the value of the
coverrecord component
-
tab
public net.minecraft.resources.ResourceLocation tab()Returns the value of thetabrecord component.- Returns:
- the value of the
tabrecord component
-
tabPlate
public net.minecraft.resources.ResourceLocation tabPlate()Returns the value of thetabPlaterecord component.- Returns:
- the value of the
tabPlaterecord component
-
backdrop
@Nullable public @Nullable net.minecraft.resources.ResourceLocation backdrop()Returns the value of thebackdroprecord component.- Returns:
- the value of the
backdroprecord component
-