Interface Changes


public interface Changes
A class to manage changes and send them to a player.
  • Method Details

    • location

      Location location()
    • show

      int show(Player player)
      Show changes to the player
      Parameters:
      player - player
      Returns:
      the amount of send packets
    • hide

      int hide(Player player)
      Hide changes from the player
      Parameters:
      player - player
      Returns:
      the amount of send packets
    • size

      int size()
      The amount of changes
      Returns:
      changes
    • hide

      int hide(Player player, Changes newChanges)
      Hides the changes to the player based on new changes. This can be seen as an incremental update.
      Parameters:
      player - player
      newChanges - new changes
      Returns:
      the amount of send packets
    • changed

      Map<Location,BlockData> changed()
      Changed blocks
      Returns:
      map of blocks
    • original

      Map<Location,BlockData> original()
      Original blocks
      Returns:
      map of blocks
    • show

      int show(Player player, Changes oldChanges)
      Shows the changes to the player based on old changes. This can be seen as an incremental update.
      Parameters:
      player - player
      oldChanges - old changes
      Returns:
      the amount of send packets