Added throws clause to ISpawnHandler functions to keep the functions consistent with similar functions and increase ease of use. Exceptions are already being caught everywhere these functions are called, so no further changes required.
This commit is contained in:
parent
c0bf315876
commit
a3345c6d57
1 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ public interface ISpawnHandler
|
|||
*
|
||||
* @param data The packet data stream
|
||||
*/
|
||||
public void writeSpawnData(DataOutputStream data);
|
||||
public void writeSpawnData(DataOutputStream data) throws IOException;
|
||||
|
||||
/**
|
||||
* Called by the client when it receives a Entity spawn packet.
|
||||
|
@ -23,5 +23,5 @@ public interface ISpawnHandler
|
|||
*
|
||||
* @param data The packet data stream
|
||||
*/
|
||||
public void readSpawnData(DataInputStream data);
|
||||
public void readSpawnData(DataInputStream data) throws IOException;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue