Record Class BookScreen.Contents
java.lang.Object
java.lang.Record
net.minecraft.client.gui.screen.ingame.BookScreen.Contents
- Record Components:
pages
-
- Enclosing class:
BookScreen
- Mappings:
Namespace Name official fmi$a
intermediary net/minecraft/class_3872$class_3931
named net/minecraft/client/gui/screen/ingame/BookScreen$Contents
official a
intermediary comp_2438
named pages
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable BookScreen.Contents
final boolean
Indicates whether some other object is "equal to" this one.getPage
(int index) int
final int
hashCode()
Returns a hash code value for this object.pages()
Returns the value of thepages
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
pages
The field for thepages
record component.
-
-
Constructor Details
-
Contents
-
-
Method Details
-
getPageCount
public int getPageCount()- Mappings:
Namespace Name Mixin selector official a
Lfmi$a;a()I
intermediary method_17560
Lnet/minecraft/class_3872$class_3931;method_17560()I
named getPageCount
Lnet/minecraft/client/gui/screen/ingame/BookScreen$Contents;getPageCount()I
-
getPage
- Mappings:
Namespace Name Mixin selector official a
Lfmi$a;a(I)Lwz;
intermediary method_17563
Lnet/minecraft/class_3872$class_3931;method_17563(I)Lnet/minecraft/class_5348;
named getPage
Lnet/minecraft/client/gui/screen/ingame/BookScreen$Contents;getPage(I)Lnet/minecraft/text/StringVisitable;
-
create
- Mappings:
Namespace Name Mixin selector official a
Lfmi$a;a(Lcsz;)Lfmi$a;
intermediary method_17562
Lnet/minecraft/class_3872$class_3931;method_17562(Lnet/minecraft/class_1799;)Lnet/minecraft/class_3872$class_3931;
named create
Lnet/minecraft/client/gui/screen/ingame/BookScreen$Contents;create(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/client/gui/screen/ingame/BookScreen$Contents;
-
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)
. -
pages
Returns the value of thepages
record component.- Returns:
- the value of the
pages
record component
-