Interface Changes
public interface Changes
A class to manage changes and send them to a player.
-
Method Summary
Modifier and TypeMethodDescriptionchanged()
Changed blocksint
Hide changes from the playerint
Hides the changes to the player based on new changes.location()
original()
Original blocksint
Show changes to the playerint
Shows the changes to the player based on old changes.int
size()
The amount of changes
-
Method Details
-
location
Location location() -
show
Show changes to the player- Parameters:
player
- player- Returns:
- the amount of send packets
-
hide
Hide changes from the player- Parameters:
player
- player- Returns:
- the amount of send packets
-
size
int size()The amount of changes- Returns:
- changes
-
hide
Hides the changes to the player based on new changes. This can be seen as an incremental update.- Parameters:
player
- playernewChanges
- new changes- Returns:
- the amount of send packets
-
changed
Changed blocks- Returns:
- map of blocks
-
original
Original blocks- Returns:
- map of blocks
-
show
Shows the changes to the player based on old changes. This can be seen as an incremental update.- Parameters:
player
- playeroldChanges
- old changes- Returns:
- the amount of send packets
-