Package net.minecraft
Record Class class_12322.class_12323
java.lang.Object
java.lang.Record
net.minecraft.class_12322.class_12323
- Record Components:
player-count-
- All Implemented Interfaces:
AbstractCriterion.Conditions,CriterionConditions
- Enclosing class:
class_12322
public static record class_12322.class_12323(Optional<LootContextPredicate> player, Optional<Integer> count)
extends Record
implements AbstractCriterion.Conditions
- Mappings:
Namespace Name named net/minecraft/class_12322$class_12323intermediary net/minecraft/class_12322$class_12323official dj$anamed playerintermediary comp_2029official bnamed countintermediary comp_5218official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<class_12322.class_12323> The field for thecountrecord component.private final Optional<LootContextPredicate> The field for theplayerrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionclass_12323(Optional<LootContextPredicate> player, Optional<Integer> count) Creates an instance of aclass_12323record class. -
Method Summary
Modifier and TypeMethodDescriptioncount()Returns the value of thecountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.method_76462(int int2) booleanmethod_76464(int int2) player()Returns the value of theplayerrecord component.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.advancement.criterion.AbstractCriterion.Conditions
validate
-
Field Details
-
player
The field for theplayerrecord component. -
count
The field for thecountrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/class_12322$class_12323;CODEC:Lcom/mojang/serialization/Codec;intermediary field_64376Lnet/minecraft/class_12322$class_12323;field_64376:Lcom/mojang/serialization/Codec;official aLdj$a;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
Method Details
-
method_76462
- Mappings:
Namespace Name Mixin selector named method_76462Lnet/minecraft/class_12322$class_12323;method_76462(I)Lnet/minecraft/advancement/AdvancementCriterion;intermediary method_76462Lnet/minecraft/class_12322$class_12323;method_76462(I)Lnet/minecraft/class_175;official aLdj$a;a(I)Lak;
-
method_76464
public boolean method_76464(int int2) - Mappings:
Namespace Name Mixin selector named method_76464Lnet/minecraft/class_12322$class_12323;method_76464(I)Zintermediary method_76464Lnet/minecraft/class_12322$class_12323;method_76464(I)Zofficial bLdj$a;b(I)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). -
player
Returns the value of theplayerrecord component.- Specified by:
playerin interfaceAbstractCriterion.Conditions- Returns:
- the value of the
playerrecord component
-
count
Returns the value of thecountrecord component.- Returns:
- the value of the
countrecord component
-