Remove synchronized from turtle inventory code

These should never be called off the server thread, so this doesn't make
much difference.
This commit is contained in:
SquidDev
2019-08-01 14:09:57 +01:00
parent 2f96283286
commit 75e2845c01
4 changed files with 59 additions and 97 deletions
@@ -145,7 +145,9 @@ public interface ITurtleAccess
GameProfile getOwningPlayer();
/**
* Get the inventory of this turtle
* Get the inventory of this turtle.
*
* Note: this inventory should only be accessed and modified on the server thread.
*
* @return This turtle's inventory
* @see #getItemHandler()
@@ -156,6 +158,8 @@ public interface ITurtleAccess
/**
* Get the inventory of this turtle as an {@link IItemHandlerModifiable}.
*
* Note: this inventory should only be accessed and modified on the server thread.
*
* @return This turtle's inventory
* @see #getInventory()
* @see IItemHandlerModifiable