Record Class GeyserWorldAccessor
java.lang.Object
java.lang.Record
ac.boar.geyser.anticheat.player.accessor.GeyserWorldAccessor
- All Implemented Interfaces:
ac.boar.anticheat.player.accessor.WorldAccessor
public record GeyserWorldAccessor(org.geysermc.geyser.session.GeyserSession session)
extends Record
implements ac.boar.anticheat.player.accessor.WorldAccessor
-
Constructor Summary
ConstructorsConstructorDescriptionGeyserWorldAccessor(org.geysermc.geyser.session.GeyserSession session) Creates an instance of aGeyserWorldAccessorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionac.boar.anticheat.data.block.BoarBlockStateblockStateAt(org.cloudburstmc.math.vector.Vector3i position, int layer) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisItemFrameAt(org.cloudburstmc.math.vector.Vector3i position) org.geysermc.geyser.session.GeyserSessionsession()Returns the value of thesessionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GeyserWorldAccessor
public GeyserWorldAccessor(org.geysermc.geyser.session.GeyserSession session) Creates an instance of aGeyserWorldAccessorrecord class.- Parameters:
session- the value for thesessionrecord component
-
-
Method Details
-
blockStateAt
public ac.boar.anticheat.data.block.BoarBlockState blockStateAt(org.cloudburstmc.math.vector.Vector3i position, int layer) - Specified by:
blockStateAtin interfaceac.boar.anticheat.player.accessor.WorldAccessor
-
isItemFrameAt
public boolean isItemFrameAt(org.cloudburstmc.math.vector.Vector3i position) - Specified by:
isItemFrameAtin interfaceac.boar.anticheat.player.accessor.WorldAccessor
-
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
-