Class CTNetworkContext

java.lang.Object
com.blamejared.crafttweaker.api.network.CTNetworkContext

@ZenRegister public class CTNetworkContext extends Object
Context that is provided when data is received from the network.
DocParam:
this context
  • Constructor Details

    • CTNetworkContext

      public CTNetworkContext(String id, net.minecraft.world.entity.player.Player player)
  • Method Details

    • id

      public String id()
      The id of the network request.
      Returns:
      The id of the network request.
    • player

      public net.minecraft.world.entity.player.Player player()
      The player that received the network request, this is usually the client player.
      Returns:
      The player that received the network request.