Class PacketEvent.Send

java.lang.Object
meteordevelopment.meteorclient.events.Cancellable
meteordevelopment.meteorclient.events.packets.PacketEvent.Send
All Implemented Interfaces:
meteordevelopment.orbit.ICancellable
Enclosing class:
PacketEvent

public static class PacketEvent.Send extends Cancellable
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    net.minecraft.network.Connection
     
    net.minecraft.network.protocol.Packet<?>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Send(net.minecraft.network.protocol.Packet<?> packet, net.minecraft.network.Connection connection)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    sendSilently(net.minecraft.network.protocol.Packet<?> packet)
    Sends a packet without triggering an event.

    Methods inherited from class Cancellable

    isCancelled, setCancelled

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface meteordevelopment.orbit.ICancellable

    cancel
  • Field Details

    • packet

      public net.minecraft.network.protocol.Packet<?> packet
    • connection

      public net.minecraft.network.Connection connection
  • Constructor Details

    • Send

      public Send(net.minecraft.network.protocol.Packet<?> packet, net.minecraft.network.Connection connection)
  • Method Details

    • sendSilently

      public void sendSilently(net.minecraft.network.protocol.Packet<?> packet)
      Sends a packet without triggering an event. Use when you want to send a packet inside the event listener, without causing a StackOverflowError
      Parameters:
      packet - The packet to silently send