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/WritableBookContentComponentintermediary net/minecraft/class_9301official ddtnamed pagesintermediary comp_2418official g
-
Field Summary
FieldsModifier 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 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()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
-
pages
The field for thepagesrecord component. -
DEFAULT
- Mappings:
Namespace Name Mixin selector named DEFAULTLnet/minecraft/component/type/WritableBookContentComponent;DEFAULT:Lnet/minecraft/component/type/WritableBookContentComponent;intermediary field_49369Lnet/minecraft/class_9301;field_49369:Lnet/minecraft/class_9301;official aLddt;a:Lddt;
-
MAX_PAGE_LENGTH
public static final int MAX_PAGE_LENGTH- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_PAGE_LENGTHLnet/minecraft/component/type/WritableBookContentComponent;MAX_PAGE_LENGTH:Iintermediary field_49370Lnet/minecraft/class_9301;field_49370:Iofficial bLddt;b:I
-
MAX_PAGE_COUNT
public static final int MAX_PAGE_COUNT- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_PAGE_COUNTLnet/minecraft/component/type/WritableBookContentComponent;MAX_PAGE_COUNT:Iintermediary field_51411Lnet/minecraft/class_9301;field_51411:Iofficial cLddt;c:I
-
PAGE_CODEC
- Mappings:
Namespace Name Mixin selector named PAGE_CODECLnet/minecraft/component/type/WritableBookContentComponent;PAGE_CODEC:Lcom/mojang/serialization/Codec;intermediary field_49373Lnet/minecraft/class_9301;field_49373:Lcom/mojang/serialization/Codec;official hLddt;h:Lcom/mojang/serialization/Codec;
-
PAGES_CODEC
- Mappings:
Namespace Name Mixin selector named PAGES_CODECLnet/minecraft/component/type/WritableBookContentComponent;PAGES_CODEC:Lcom/mojang/serialization/Codec;intermediary field_49374Lnet/minecraft/class_9301;field_49374:Lcom/mojang/serialization/Codec;official dLddt;d:Lcom/mojang/serialization/Codec;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/component/type/WritableBookContentComponent;CODEC:Lcom/mojang/serialization/Codec;intermediary field_49371Lnet/minecraft/class_9301;field_49371:Lcom/mojang/serialization/Codec;official eLddt;e:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/component/type/WritableBookContentComponent;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_49372Lnet/minecraft/class_9301;field_49372:Lnet/minecraft/class_9139;official fLddt;f:Lze;
-
-
Constructor Details
-
WritableBookContentComponent
Creates an instance of aWritableBookContentComponentrecord class.- Parameters:
pages- the value for thepagesrecord component
-
-
Method Details
-
stream
- Mappings:
Namespace Name Mixin selector named streamLnet/minecraft/component/type/WritableBookContentComponent;stream(Z)Ljava/util/stream/Stream;intermediary method_57517Lnet/minecraft/class_9301;method_57517(Z)Ljava/util/stream/Stream;official aLddt;a(Z)Ljava/util/stream/Stream;
-
withPages
- Specified by:
withPagesin interfaceBookContent<String,WritableBookContentComponent> - Mappings:
Namespace Name Mixin selector named withPagesLnet/minecraft/component/type/WritableBookContentComponent;withPages(Ljava/util/List;)Lnet/minecraft/component/type/WritableBookContentComponent;intermediary method_58187Lnet/minecraft/class_9301;method_58187(Ljava/util/List;)Lnet/minecraft/class_9301;official bLddt;b(Ljava/util/List;)Lddt;
-
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.- Specified by:
pagesin interfaceBookContent<String,WritableBookContentComponent> - Returns:
- the value of the
pagesrecord component
-