Package net.minecraft.predicate.item
Record Class CustomDataPredicate
java.lang.Object
java.lang.Record
net.minecraft.predicate.item.CustomDataPredicate
- Record Components:
value-
- All Implemented Interfaces:
ItemSubPredicate
- Mappings:
Namespace Name named net/minecraft/predicate/item/CustomDataPredicateintermediary net/minecraft/class_9354official cknamed valueintermediary comp_2458official c
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.predicate.item.ItemSubPredicate
ItemSubPredicate.Type<T extends ItemSubPredicate> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<CustomDataPredicate> private final NbtPredicateThe field for thevaluerecord component.Fields inherited from interface net.minecraft.predicate.item.ItemSubPredicate
PREDICATES_MAP_CODEC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CustomDataPredicatecustomData(NbtPredicate value) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanfinal StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Field Details
-
value
The field for thevaluerecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/predicate/item/CustomDataPredicate;CODEC:Lcom/mojang/serialization/Codec;intermediary field_49797Lnet/minecraft/class_9354;field_49797:Lcom/mojang/serialization/Codec;official aLck;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
CustomDataPredicate
-
-
Method Details
-
test
- Specified by:
testin interfaceItemSubPredicate- Mappings:
Namespace Name Mixin selector named testLnet/minecraft/predicate/item/ItemSubPredicate;test(Lnet/minecraft/item/ItemStack;)Zintermediary method_58161Lnet/minecraft/class_9360;method_58161(Lnet/minecraft/class_1799;)Zofficial aLct;a(Lcuq;)Z
-
customData
- Mappings:
Namespace Name Mixin selector named customDataLnet/minecraft/predicate/item/CustomDataPredicate;customData(Lnet/minecraft/predicate/NbtPredicate;)Lnet/minecraft/predicate/item/CustomDataPredicate;intermediary method_58162Lnet/minecraft/class_9354;method_58162(Lnet/minecraft/class_2105;)Lnet/minecraft/class_9354;official aLck;a(Ldk;)Lck;
-
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). -
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-