Record Class FindItemResult
java.lang.Object
java.lang.Record
meteordevelopment.meteorclient.utils.player.FindItemResult
- Record Components:
slot- The slot indexcount- The number of items in the slot
-
Constructor Summary
ConstructorsConstructorDescriptionFindItemResult(int slot, int count) Creates an instance of aFindItemResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcount()Returns the value of thecountrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanfound()net.minecraft.world.InteractionHandgetHand()final inthashCode()Returns a hash code value for this object.booleanisArmor()booleanisHotbar()booleanisMain()booleanbooleanintslot()Returns the value of theslotrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FindItemResult
-
-
Method Details
-
found
public boolean found() -
getHand
public net.minecraft.world.InteractionHand getHand() -
isMainHand
public boolean isMainHand() -
isOffhand
public boolean isOffhand() -
isHotbar
public boolean isHotbar() -
isMain
public boolean isMain() -
isArmor
public boolean isArmor() -
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
slot
-
count
-