Interface IGPSToolSync

All Known Implementing Classes:
GPSAreaToolItem, GPSToolItem

public interface IGPSToolSync
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    syncFromClient(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack, int index, net.minecraft.core.BlockPos pos, String varName)
    Called when the GPS (Area) Tool GUI is closed, to send position & variable information to server
  • Method Details

    • syncFromClient

      void syncFromClient(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack, int index, net.minecraft.core.BlockPos pos, String varName)
      Called when the GPS (Area) Tool GUI is closed, to send position & variable information to server
      Parameters:
      player - the player
      stack - the gps (area) tool itemstack
      index - index of the pos & var (ignore for GPS Tool)
      pos - the new position for this index
      varName - the new variable name for this index (empty string if absent)