Package net.minecraft.entity.player
Record Class ItemCooldownManager.Entry
java.lang.Object
java.lang.Record
net.minecraft.entity.player.ItemCooldownManager.Entry
- Record Components:
startTick
-endTick
-
- Enclosing class:
ItemCooldownManager
- Mappings:
Namespace Name named net/minecraft/entity/player/ItemCooldownManager$Entry
intermediary net/minecraft/class_1796$class_1797
official cxl$a
named startTick
intermediary comp_3083
official a
named endTick
intermediary comp_3084
official b
-
Field Summary
-
Constructor Summary
ConstructorDescriptionEntry
(int startTick, int endTick) Creates an instance of aEntry
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
endTick()
Returns the value of theendTick
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
Returns the value of thestartTick
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
Method Details
-
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 with '=='. -
startTick
public int startTick()Returns the value of thestartTick
record component.- Returns:
- the value of the
startTick
record component
-
endTick
public int endTick()Returns the value of theendTick
record component.- Returns:
- the value of the
endTick
record component
-