Package net.minecraft.predicate.item
Record Class WrittenBookContentPredicate
java.lang.Object
java.lang.Record
net.minecraft.predicate.item.WrittenBookContentPredicate
- Record Components:
- pages-
- -
- title-
- generation-
- resolved-
- All Implemented Interfaces:
- ComponentSubPredicate<WrittenBookContentComponent>,- ItemSubPredicate
public record WrittenBookContentPredicate(Optional<CollectionPredicate<RawFilteredPair<Text>,WrittenBookContentPredicate.RawTextPredicate>> pages, Optional<String> author, Optional<String> title, NumberRange.IntRange generation, Optional<Boolean> resolved)
extends Record
implements ComponentSubPredicate<WrittenBookContentComponent> 
- Mappings:
- Namespace - Name - named - net/minecraft/predicate/item/WrittenBookContentPredicate- intermediary - net/minecraft/class_9663- official - db- named - pages- intermediary - comp_2642- official - c- named - author- intermediary - comp_2643- official - d- named - title- intermediary - comp_2644- official - e- named - generation- intermediary - comp_2645- official - f- named - resolved- intermediary - comp_2646- official - g
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic final recordNested classes/interfaces inherited from interface net.minecraft.predicate.item.ItemSubPredicateItemSubPredicate.Type<T extends ItemSubPredicate>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionThe field for theauthorrecord component.static final com.mojang.serialization.Codec<WrittenBookContentPredicate> private final NumberRange.IntRangeThe field for thegenerationrecord component.private final Optional<CollectionPredicate<RawFilteredPair<Text>, WrittenBookContentPredicate.RawTextPredicate>> The field for thepagesrecord component.The field for theresolvedrecord component.The field for thetitlerecord component.Fields inherited from interface net.minecraft.predicate.item.ItemSubPredicatePREDICATES_MAP_CODEC
- 
Constructor SummaryConstructorsConstructorDescriptionWrittenBookContentPredicate(Optional<CollectionPredicate<RawFilteredPair<Text>, WrittenBookContentPredicate.RawTextPredicate>> optional, Optional<String> optional2, Optional<String> optional3, NumberRange.IntRange intRange, Optional<Boolean> optional4) 
- 
Method SummaryModifier and TypeMethodDescriptionauthor()Returns the value of theauthorrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegenerationrecord component.final inthashCode()Returns a hash code value for this object.pages()Returns the value of thepagesrecord component.resolved()Returns the value of theresolvedrecord component.booleantest(ItemStack itemStack, WrittenBookContentComponent writtenBookContentComponent) title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.predicate.item.ComponentSubPredicatetest
- 
Field Details- 
pagesprivate final Optional<CollectionPredicate<RawFilteredPair<Text>,WrittenBookContentPredicate.RawTextPredicate>> pagesThe field for thepagesrecord component.
- 
authorThe field for theauthorrecord component.
- 
titleThe field for thetitlerecord component.
- 
generationThe field for thegenerationrecord component.
- 
resolvedThe field for theresolvedrecord component.
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/predicate/item/WrittenBookContentPredicate;CODEC:Lcom/mojang/serialization/Codec;- intermediary - field_51400- Lnet/minecraft/class_9663;field_51400:Lcom/mojang/serialization/Codec;- official - a- Ldb;a:Lcom/mojang/serialization/Codec;
 
 
- 
- 
Constructor Details- 
WrittenBookContentPredicatepublic WrittenBookContentPredicate(Optional<CollectionPredicate<RawFilteredPair<Text>, WrittenBookContentPredicate.RawTextPredicate>> optional, Optional<String> optional2, Optional<String> optional3, NumberRange.IntRange intRange, Optional<Boolean> optional4) 
 
- 
- 
Method Details- 
getComponentType- Specified by:
- getComponentTypein interface- ComponentSubPredicate<WrittenBookContentComponent>
- Mappings:
- Namespace - Name - Mixin selector - named - getComponentType- Lnet/minecraft/predicate/item/ComponentSubPredicate;getComponentType()Lnet/minecraft/component/ComponentType;- intermediary - method_58163- Lnet/minecraft/class_9365;method_58163()Lnet/minecraft/class_9331;- official - a- Lea;a()Lku;
 
- 
test- Specified by:
- testin interface- ComponentSubPredicate<WrittenBookContentComponent>
- Mappings:
- Namespace - Name - Mixin selector - named - test- Lnet/minecraft/predicate/item/WrittenBookContentPredicate;test(Lnet/minecraft/item/ItemStack;Lnet/minecraft/component/type/WrittenBookContentComponent;)Z- intermediary - method_59697- Lnet/minecraft/class_9663;method_59697(Lnet/minecraft/class_1799;Lnet/minecraft/class_9302;)Z- official - a- Ldb;a(Lcwq;Lczy;)Z
 
- 
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).
- 
pagespublic Optional<CollectionPredicate<RawFilteredPair<Text>,WrittenBookContentPredicate.RawTextPredicate>> pages()Returns the value of thepagesrecord component.- Returns:
- the value of the pagesrecord component
 
- 
authorReturns the value of theauthorrecord component.- Returns:
- the value of the authorrecord component
 
- 
titleReturns the value of thetitlerecord component.- Returns:
- the value of the titlerecord component
 
- 
generationReturns the value of thegenerationrecord component.- Returns:
- the value of the generationrecord component
 
- 
resolvedReturns the value of theresolvedrecord component.- Returns:
- the value of the resolvedrecord component
 
 
-