Package net.minecraft.component.type
Record Class WritableBookContentComponent
java.lang.Object
java.lang.Record
net.minecraft.component.type.WritableBookContentComponent
- Record Components:
- pages-
- All Implemented Interfaces:
- BookContent<String,- WritableBookContentComponent> 
public record WritableBookContentComponent(List<RawFilteredPair<String>> pages)
extends Record
implements BookContent<String,WritableBookContentComponent> 
- Mappings:
- Namespace - Name - named - net/minecraft/component/type/WritableBookContentComponent- intermediary - net/minecraft/class_9301- official - czx- named - pages- intermediary - comp_2418- official - g
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<WritableBookContentComponent> static final WritableBookContentComponentstatic final intstatic 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.static final com.mojang.serialization.Codec<List<RawFilteredPair<String>>> 
- 
Constructor SummaryConstructorsConstructorDescriptionCreates an instance of aWritableBookContentComponentrecord class.
- 
Method SummaryModifier 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.withPages(List<RawFilteredPair<String>> list) 
- 
Field Details- 
pagesThe field for thepagesrecord component.
- 
DEFAULT- Mappings:
- Namespace - Name - Mixin selector - named - DEFAULT- Lnet/minecraft/component/type/WritableBookContentComponent;DEFAULT:Lnet/minecraft/component/type/WritableBookContentComponent;- intermediary - field_49369- Lnet/minecraft/class_9301;field_49369:Lnet/minecraft/class_9301;- official - a- Lczx;a:Lczx;
 
- 
MAX_PAGE_LENGTHpublic static final int MAX_PAGE_LENGTH- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - MAX_PAGE_LENGTH- Lnet/minecraft/component/type/WritableBookContentComponent;MAX_PAGE_LENGTH:I- intermediary - field_49370- Lnet/minecraft/class_9301;field_49370:I- official - b- Lczx;b:I
 
- 
MAX_PAGE_COUNTpublic static final int MAX_PAGE_COUNT- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - MAX_PAGE_COUNT- Lnet/minecraft/component/type/WritableBookContentComponent;MAX_PAGE_COUNT:I- intermediary - field_51411- Lnet/minecraft/class_9301;field_51411:I- official - c- Lczx;c:I
 
- 
PAGE_CODEC- Mappings:
- Namespace - Name - Mixin selector - named - PAGE_CODEC- Lnet/minecraft/component/type/WritableBookContentComponent;PAGE_CODEC:Lcom/mojang/serialization/Codec;- intermediary - field_49373- Lnet/minecraft/class_9301;field_49373:Lcom/mojang/serialization/Codec;- official - h- Lczx;h:Lcom/mojang/serialization/Codec;
 
- 
PAGES_CODEC- Mappings:
- Namespace - Name - Mixin selector - named - PAGES_CODEC- Lnet/minecraft/component/type/WritableBookContentComponent;PAGES_CODEC:Lcom/mojang/serialization/Codec;- intermediary - field_49374- Lnet/minecraft/class_9301;field_49374:Lcom/mojang/serialization/Codec;- official - d- Lczx;d:Lcom/mojang/serialization/Codec;
 
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/component/type/WritableBookContentComponent;CODEC:Lcom/mojang/serialization/Codec;- intermediary - field_49371- Lnet/minecraft/class_9301;field_49371:Lcom/mojang/serialization/Codec;- official - e- Lczx;e:Lcom/mojang/serialization/Codec;
 
- 
PACKET_CODEC- Mappings:
- Namespace - Name - Mixin selector - named - PACKET_CODEC- Lnet/minecraft/component/type/WritableBookContentComponent;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;- intermediary - field_49372- Lnet/minecraft/class_9301;field_49372:Lnet/minecraft/class_9139;- official - f- Lczx;f:Lyn;
 
 
- 
- 
Constructor Details- 
WritableBookContentComponentCreates an instance of aWritableBookContentComponentrecord class.- Parameters:
- pages- the value for the- pagesrecord component
 
 
- 
- 
Method Details- 
stream- Mappings:
- Namespace - Name - Mixin selector - named - stream- Lnet/minecraft/component/type/WritableBookContentComponent;stream(Z)Ljava/util/stream/Stream;- intermediary - method_57517- Lnet/minecraft/class_9301;method_57517(Z)Ljava/util/stream/Stream;- official - a- Lczx;a(Z)Ljava/util/stream/Stream;
 
- 
withPages- Specified by:
- withPagesin interface- BookContent<String,- WritableBookContentComponent> 
- Mappings:
- Namespace - Name - Mixin selector - named - withPages- Lnet/minecraft/component/type/WritableBookContentComponent;withPages(Ljava/util/List;)Lnet/minecraft/component/type/WritableBookContentComponent;- intermediary - method_58187- Lnet/minecraft/class_9301;method_58187(Ljava/util/List;)Lnet/minecraft/class_9301;- official - b- Lczx;b(Ljava/util/List;)Lczx;
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
pagesReturns the value of thepagesrecord component.- Specified by:
- pagesin interface- BookContent<String,- WritableBookContentComponent> 
- Returns:
- the value of the pagesrecord component
 
 
-