Record Class GeyserInventoryAccessor
java.lang.Object
java.lang.Record
ac.boar.geyser.anticheat.player.accessor.GeyserInventoryAccessor
- All Implemented Interfaces:
ac.boar.anticheat.player.accessor.InventoryAccessor
public record GeyserInventoryAccessor(org.geysermc.geyser.session.GeyserSession session)
extends Record
implements ac.boar.anticheat.player.accessor.InventoryAccessor
-
Constructor Summary
ConstructorsConstructorDescriptionGeyserInventoryAccessor(org.geysermc.geyser.session.GeyserSession session) Creates an instance of aGeyserInventoryAccessorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intorg.geysermc.geyser.session.GeyserSessionsession()Returns the value of thesessionrecord component.final StringtoString()Returns a string representation of this record class.voidupdateSlot(int slot)
-
Constructor Details
-
GeyserInventoryAccessor
public GeyserInventoryAccessor(org.geysermc.geyser.session.GeyserSession session) Creates an instance of aGeyserInventoryAccessorrecord class.- Parameters:
session- the value for thesessionrecord component
-
-
Method Details
-
updateSlot
public void updateSlot(int slot) - Specified by:
updateSlotin interfaceac.boar.anticheat.player.accessor.InventoryAccessor
-
heldItemSlot
public int heldItemSlot()- Specified by:
heldItemSlotin interfaceac.boar.anticheat.player.accessor.InventoryAccessor
-
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). -
session
public org.geysermc.geyser.session.GeyserSession session()Returns the value of thesessionrecord component.- Returns:
- the value of the
sessionrecord component
-