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/CustomDataPredicate
intermediary net/minecraft/class_9354
official ci
named value
intermediary comp_2458
official c
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.predicate.item.ItemSubPredicate
ItemSubPredicate.Type<T extends ItemSubPredicate>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<CustomDataPredicate> private final NbtPredicate
The field for thevalue
record component.Fields inherited from interface net.minecraft.predicate.item.ItemSubPredicate
PREDICATES_MAP_CODEC
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CustomDataPredicate
customData
(NbtPredicate value) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
final String
toString()
Returns a string representation of this record class.value()
Returns the value of thevalue
record component.
-
Field Details
-
value
The field for thevalue
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/predicate/item/CustomDataPredicate;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_49797
Lnet/minecraft/class_9354;field_49797:Lcom/mojang/serialization/Codec;
official a
Lci;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
CustomDataPredicate
-
-
Method Details
-
test
- Specified by:
test
in interfaceItemSubPredicate
- Mappings:
Namespace Name Mixin selector named test
Lnet/minecraft/predicate/item/ItemSubPredicate;test(Lnet/minecraft/item/ItemStack;)Z
intermediary method_58161
Lnet/minecraft/class_9360;method_58161(Lnet/minecraft/class_1799;)Z
official a
Lcq;a(Lcur;)Z
-
customData
- Mappings:
Namespace Name Mixin selector named customData
Lnet/minecraft/predicate/item/CustomDataPredicate;customData(Lnet/minecraft/predicate/NbtPredicate;)Lnet/minecraft/predicate/item/CustomDataPredicate;
intermediary method_58162
Lnet/minecraft/class_9354;method_58162(Lnet/minecraft/class_2105;)Lnet/minecraft/class_9354;
official a
Lci;a(Ldg;)Lci;
-
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 thevalue
record component.- Returns:
- the value of the
value
record component
-