Record Class GeyserEntityAccessor
java.lang.Object
java.lang.Record
ac.boar.geyser.anticheat.player.accessor.GeyserEntityAccessor
- All Implemented Interfaces:
ac.boar.anticheat.player.accessor.EntityAccessor
public record GeyserEntityAccessor(org.geysermc.geyser.session.GeyserSession session)
extends Record
implements ac.boar.anticheat.player.accessor.EntityAccessor
-
Constructor Summary
ConstructorsConstructorDescriptionGeyserEntityAccessor(org.geysermc.geyser.session.GeyserSession session) Creates an instance of aGeyserEntityAccessorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionac.boar.mappings.entity.EntityDefinitiondefinitionByRuntimeId(long runtimeId) @Nullable ac.boar.mappings.entity.EntityentityByRuntimeId(long runtimeId) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.org.geysermc.geyser.session.GeyserSessionsession()Returns the value of thesessionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GeyserEntityAccessor
public GeyserEntityAccessor(org.geysermc.geyser.session.GeyserSession session) Creates an instance of aGeyserEntityAccessorrecord class.- Parameters:
session- the value for thesessionrecord component
-
-
Method Details
-
entityByRuntimeId
@Nullable public @Nullable ac.boar.mappings.entity.Entity entityByRuntimeId(long runtimeId) - Specified by:
entityByRuntimeIdin interfaceac.boar.anticheat.player.accessor.EntityAccessor
-
definitionByRuntimeId
public ac.boar.mappings.entity.EntityDefinition definitionByRuntimeId(long runtimeId) - Specified by:
definitionByRuntimeIdin interfaceac.boar.anticheat.player.accessor.EntityAccessor
-
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
-