Package net.minecraft.component.type
Record Class WritableBookContentComponent
java.lang.Object
java.lang.Record
net.minecraft.component.type.WritableBookContentComponent
- Record Components:
pages-
- Mappings:
Namespace Name official cuuintermediary net/minecraft/class_9301named net/minecraft/component/type/WritableBookContentComponentofficial eintermediary comp_2418named pages
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<WritableBookContentComponent> static final WritableBookContentComponentstatic final intstatic final PacketCodec<ByteBuf, WritableBookContentComponent> private static final com.mojang.serialization.Codec<RawFilteredPair<String>> private final List<RawFilteredPair<String>> The field for thepagesrecord component.private static final com.mojang.serialization.Codec<List<RawFilteredPair<String>>> -
Constructor Summary
Constructors -
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.pages()Returns the value of thepagesrecord component.stream(boolean shouldFilter) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
pages
The field for thepagesrecord component. -
DEFAULT
- Mappings:
Namespace Name Mixin selector official aLcuu;a:Lcuu;intermediary field_49369Lnet/minecraft/class_9301;field_49369:Lnet/minecraft/class_9301;named DEFAULTLnet/minecraft/component/type/WritableBookContentComponent;DEFAULT:Lnet/minecraft/component/type/WritableBookContentComponent;
-
MAX_PAGE_LENGTH
public static final int MAX_PAGE_LENGTH- See Also:
- Mappings:
Namespace Name Mixin selector official bLcuu;b:Iintermediary field_49370Lnet/minecraft/class_9301;field_49370:Inamed MAX_PAGE_LENGTHLnet/minecraft/component/type/WritableBookContentComponent;MAX_PAGE_LENGTH:I
-
PAGE_CODEC
- Mappings:
Namespace Name Mixin selector official fLcuu;f:Lcom/mojang/serialization/Codec;intermediary field_49373Lnet/minecraft/class_9301;field_49373:Lcom/mojang/serialization/Codec;named PAGE_CODECLnet/minecraft/component/type/WritableBookContentComponent;PAGE_CODEC:Lcom/mojang/serialization/Codec;
-
PAGES_CODEC
- Mappings:
Namespace Name Mixin selector official gLcuu;g:Lcom/mojang/serialization/Codec;intermediary field_49374Lnet/minecraft/class_9301;field_49374:Lcom/mojang/serialization/Codec;named PAGES_CODECLnet/minecraft/component/type/WritableBookContentComponent;PAGES_CODEC:Lcom/mojang/serialization/Codec;
-
CODEC
- Mappings:
Namespace Name Mixin selector official cLcuu;c:Lcom/mojang/serialization/Codec;intermediary field_49371Lnet/minecraft/class_9301;field_49371:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/component/type/WritableBookContentComponent;CODEC:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector official dLcuu;d:Lyg;intermediary field_49372Lnet/minecraft/class_9301;field_49372:Lnet/minecraft/class_9139;named PACKET_CODECLnet/minecraft/component/type/WritableBookContentComponent;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
-
-
Constructor Details
-
WritableBookContentComponent
-
-
Method Details
-
stream
- Mappings:
Namespace Name Mixin selector official aLcuu;a(Z)Ljava/util/stream/Stream;intermediary method_57517Lnet/minecraft/class_9301;method_57517(Z)Ljava/util/stream/Stream;named streamLnet/minecraft/component/type/WritableBookContentComponent;stream(Z)Ljava/util/stream/Stream;
-
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 thepagesrecord component.- Returns:
- the value of the
pagesrecord component
-