Package org.geysermc.geyser.erosion
Record Class GeyserErosionPacketSender
java.lang.Object
java.lang.Record
org.geysermc.geyser.erosion.GeyserErosionPacketSender
- All Implemented Interfaces:
org.geysermc.erosion.packet.ErosionPacketSender<org.geysermc.erosion.packet.backendbound.BackendboundPacket>
public record GeyserErosionPacketSender(GeyserSession session)
extends Record
implements org.geysermc.erosion.packet.ErosionPacketSender<org.geysermc.erosion.packet.backendbound.BackendboundPacket>
-
Constructor Summary
ConstructorsConstructorDescriptionGeyserErosionPacketSender(GeyserSession session) Creates an instance of aGeyserErosionPacketSenderrecord 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.voidsendPacket(org.geysermc.erosion.packet.backendbound.BackendboundPacket packet) session()Returns the value of thesessionrecord component.voidsetChannel(io.netty.channel.Channel channel) final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.geysermc.erosion.packet.ErosionPacketSender
close, flush, sendPacketWithoutFlush
-
Constructor Details
-
GeyserErosionPacketSender
Creates an instance of aGeyserErosionPacketSenderrecord class.- Parameters:
session- the value for thesessionrecord component
-
-
Method Details
-
sendPacket
public void sendPacket(org.geysermc.erosion.packet.backendbound.BackendboundPacket packet) - Specified by:
sendPacketin interfaceorg.geysermc.erosion.packet.ErosionPacketSender<org.geysermc.erosion.packet.backendbound.BackendboundPacket>
-
setChannel
public void setChannel(io.netty.channel.Channel channel) - Specified by:
setChannelin interfaceorg.geysermc.erosion.packet.ErosionPacketSender<org.geysermc.erosion.packet.backendbound.BackendboundPacket>
-
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
Returns the value of thesessionrecord component.- Returns:
- the value of the
sessionrecord component
-