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 official cax$a
intermediary net/minecraft/class_7254$class_7379
named net/minecraft/entity/ai/WardenAngerManager$SuspectComparator
official a
intermediary comp_708
named angerManagement
-
Field Summary
Modifier and TypeFieldDescriptionprivate final WardenAngerManager
The field for theangerManagement
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theangerManagement
record component.int
final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
angerManagement
The field for theangerManagement
record component.
-
-
Constructor Details
-
SuspectComparator
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<Entity>
- Mappings:
Namespace Name Mixin selector official a
Lcax$a;a(Lbiq;Lbiq;)I
intermediary method_43110
Lnet/minecraft/class_7254$class_7379;method_43110(Lnet/minecraft/class_1297;Lnet/minecraft/class_1297;)I
named compare
Lnet/minecraft/entity/ai/WardenAngerManager$SuspectComparator;compare(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/Entity;)I
-
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)
.- Specified by:
equals
in interfaceComparator<Entity>
- Specified by:
equals
in classRecord
- Parameters:
object
- the object with which to compare- Returns:
true
if this object is the same as theobject
argument;false
otherwise.
-
angerManagement
Returns the value of theangerManagement
record component.- Returns:
- the value of the
angerManagement
record component
-