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 official cxzintermediary net/minecraft/class_9301named net/minecraft/component/type/WritableBookContentComponentofficial fintermediary 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.static final com.mojang.serialization.Codec<List<RawFilteredPair<String>>> -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aWritableBookContentComponentrecord class. -
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()stream(boolean shouldFilter) final StringtoString()Returns a string representation of this record class.withPages(List<RawFilteredPair<String>> list)
-
Field Details
-
pages
The field for thepagesrecord component. -
DEFAULT
- Mappings:
Namespace Name Mixin selector official aLcxz;a:Lcxz;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 bLcxz;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 gLcxz;g: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 cLcxz;c: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 dLcxz;d: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 eLcxz;e:Lzc;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
Creates an instance of aWritableBookContentComponentrecord class.- Parameters:
pages- the value for thepagesrecord component
-
-
Method Details
-
stream
- Mappings:
Namespace Name Mixin selector official aLcxz;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;
-
withPages
- Specified by:
withPagesin interfaceBookContent<String,WritableBookContentComponent> - Mappings:
Namespace Name Mixin selector official bLcxz;b(Ljava/util/List;)Lcxz;intermediary method_58187Lnet/minecraft/class_9301;method_58187(Ljava/util/List;)Lnet/minecraft/class_9301;named withPagesLnet/minecraft/component/type/WritableBookContentComponent;withPages(Ljava/util/List;)Lnet/minecraft/component/type/WritableBookContentComponent;
-
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
- Specified by:
pagesin interfaceBookContent<String,WritableBookContentComponent> - Mappings:
Namespace Name Mixin selector official aLcxc;a()Ljava/util/List;intermediary comp_2422Lnet/minecraft/class_9364;comp_2422()Ljava/util/List;named pagesLnet/minecraft/component/type/BookContent;pages()Ljava/util/List;
-