Interface IGPSToolSync
- All Known Implementing Classes:
GPSAreaToolItem,GPSToolItem
public interface IGPSToolSync
-
Method Summary
Modifier and TypeMethodDescriptionvoidsyncFromClient(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 playerstack- the gps (area) tool itemstackindex- index of the pos & var (ignore for GPS Tool)pos- the new position for this indexvarName- the new variable name for this index (empty string if absent)
-