Package net.minecraft.entity.ai
Record Class WardenAngerManager.SuspectComparator
java.lang.Object
java.lang.Record
net.minecraft.entity.ai.WardenAngerManager.SuspectComparator
- Record Components:
- angerManagement-
- All Implemented Interfaces:
- Comparator<Entity>
- Enclosing class:
- WardenAngerManager
protected static record WardenAngerManager.SuspectComparator(WardenAngerManager angerManagement)
extends Record
implements Comparator<Entity>
- Mappings:
- Namespace - Name - named - net/minecraft/entity/ai/WardenAngerManager$SuspectComparator- intermediary - net/minecraft/class_7254$class_7379- official - cnz$a- named - angerManagement- intermediary - comp_708- official - a
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final WardenAngerManagerThe field for theangerManagementrecord component.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturns the value of theangerManagementrecord component.intfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.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 java.util.Comparatorreversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
- 
Field Details- 
angerManagementThe field for theangerManagementrecord component.
 
- 
- 
Constructor Details- 
SuspectComparator
 
- 
- 
Method Details- 
compare- Specified by:
- comparein interface- Comparator<Entity>
- Mappings:
- Namespace - Name - Mixin selector - named - compare- Lnet/minecraft/entity/ai/WardenAngerManager$SuspectComparator;compare(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/Entity;)I- intermediary - method_43110- Lnet/minecraft/class_7254$class_7379;method_43110(Lnet/minecraft/class_1297;Lnet/minecraft/class_1297;)I- official - a- Lcnz$a;a(Lbum;Lbum;)I
 
- 
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).- Specified by:
- equalsin interface- Comparator<Entity>
- Specified by:
- equalsin class- Record
- Parameters:
- object- the object with which to compare
- Returns:
- trueif this object is the same as the- objectargument;- falseotherwise.
 
- 
angerManagementReturns the value of theangerManagementrecord component.- Returns:
- the value of the angerManagementrecord component
 
 
-