Interface PacketSender

All Known Subinterfaces:
WiredElement, WiredSender

public interface PacketSender
An object on a PacketNetwork, capable of sending packets.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.level.Level
    Get the world in which this packet sender exists.
    net.minecraft.world.phys.Vec3
    Get the position in the world at which this sender exists.
    Get some sort of identification string for this sender.
  • Method Details

    • getLevel

      net.minecraft.world.level.Level getLevel()
      Get the world in which this packet sender exists.
      Returns:
      The sender's world.
    • getPosition

      net.minecraft.world.phys.Vec3 getPosition()
      Get the position in the world at which this sender exists.
      Returns:
      The sender's position.
    • getSenderID

      String getSenderID()
      Get some sort of identification string for this sender. This does not strictly need to be unique, but you should be able to extract some identifiable information from it.
      Returns:
      This device's id.