Interface PacketReceiver


public interface PacketReceiver
An object on an PacketNetwork, capable of receiving packets.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.level.Level
    Get the world in which this packet receiver exists.
    net.minecraft.world.phys.Vec3
    Get the position in the world at which this receiver exists.
    double
    Get the maximum distance this receiver can send and receive messages.
    boolean
    Determine whether this receiver can receive packets from other dimensions.
    void
    Receive a network packet from a different dimension.
    void
    receiveSameDimension(Packet packet, double distance)
    Receive a network packet from the same dimension.