Package net.minecraft
Record Class class_9663
java.lang.Object
java.lang.Record
net.minecraft.class_9663
- Record Components:
c-d-e-f-g-
- All Implemented Interfaces:
ComponentSubPredicate<WrittenBookContentComponent>,ItemSubPredicate
public record class_9663(Optional<class_9648<RawFilteredPair<Text>,class_9663.class_9664>> c, Optional<String> d, Optional<String> e, NumberRange.IntRange f, Optional<Boolean> g)
extends Record
implements ComponentSubPredicate<WrittenBookContentComponent>
- Mappings:
Namespace Name named net/minecraft/class_9663intermediary net/minecraft/class_9663official cvnamed cintermediary comp_2642official cnamed dintermediary comp_2643official dnamed eintermediary comp_2644official enamed fintermediary comp_2645official fnamed gintermediary comp_2646official g
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface net.minecraft.predicate.item.ItemSubPredicate
ItemSubPredicate.Type<T extends ItemSubPredicate> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Optional<class_9648<RawFilteredPair<Text>, class_9663.class_9664>> The field for thecrecord component.The field for thedrecord component.The field for theerecord component.private final NumberRange.IntRangeThe field for thefrecord component.static final com.mojang.serialization.Codec<class_9663> The field for thegrecord component.Fields inherited from interface net.minecraft.predicate.item.ItemSubPredicate
PREDICATES_MAP_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionclass_9663(Optional<class_9648<RawFilteredPair<Text>, class_9663.class_9664>> optional, Optional<String> optional2, Optional<String> optional3, NumberRange.IntRange intRange, Optional<Boolean> optional4) -
Method Summary
Modifier and TypeMethodDescriptionc()Returns the value of thecrecord component.d()Returns the value of thedrecord component.e()Returns the value of theerecord component.final booleanIndicates whether some other object is "equal to" this one.f()Returns the value of thefrecord component.g()Returns the value of thegrecord component.final inthashCode()Returns a hash code value for this object.booleantest(ItemStack itemStack, WrittenBookContentComponent writtenBookContentComponent) final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.predicate.item.ComponentSubPredicate
test
-
Field Details
-
c
The field for thecrecord component. -
d
The field for thedrecord component. -
e
The field for theerecord component. -
f
The field for thefrecord component. -
g
The field for thegrecord component. -
field_51400
- Mappings:
Namespace Name Mixin selector named field_51400Lnet/minecraft/class_9663;field_51400:Lcom/mojang/serialization/Codec;intermediary field_51400Lnet/minecraft/class_9663;field_51400:Lcom/mojang/serialization/Codec;official aLcv;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
class_9663
public class_9663(Optional<class_9648<RawFilteredPair<Text>, class_9663.class_9664>> optional, Optional<String> optional2, Optional<String> optional3, NumberRange.IntRange intRange, Optional<Boolean> optional4)
-
-
Method Details
-
getComponentType
- Specified by:
getComponentTypein interfaceComponentSubPredicate<WrittenBookContentComponent>- Mappings:
Namespace Name Mixin selector named getComponentTypeLnet/minecraft/predicate/item/ComponentSubPredicate;getComponentType()Lnet/minecraft/component/DataComponentType;intermediary method_58163Lnet/minecraft/class_9365;method_58163()Lnet/minecraft/class_9331;official aLds;a()Lkl;
-
test
- Specified by:
testin interfaceComponentSubPredicate<WrittenBookContentComponent>- Mappings:
Namespace Name Mixin selector named testLnet/minecraft/class_9663;test(Lnet/minecraft/item/ItemStack;Lnet/minecraft/component/type/WrittenBookContentComponent;)Zintermediary method_59697Lnet/minecraft/class_9663;method_59697(Lnet/minecraft/class_1799;Lnet/minecraft/class_9302;)Zofficial aLcv;a(Lcuk;Lcxt;)Z
-
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). -
c
Returns the value of thecrecord component.- Returns:
- the value of the
crecord component
-
d
Returns the value of thedrecord component.- Returns:
- the value of the
drecord component
-
e
Returns the value of theerecord component.- Returns:
- the value of the
erecord component
-
f
Returns the value of thefrecord component.- Returns:
- the value of the
frecord component
-
g
Returns the value of thegrecord component.- Returns:
- the value of the
grecord component
-