|
TModLoader v1.4.4.9
TModLoader source code documentation
|
|
inlinevirtualinherited |
Allows customization of how locking a chest is accomplished. By default, frameXAdjustment will be 36, shifting the frameX over to the right by 1 chest style. If your chests are in a different order, adjust frameXAdjustment accordingly. This hook is called on the client, and if successful will be called on the server and other clients as the action is synced. Make sure that the logic is consistent and not dependent on local player data.
| i | The x position in tile coordinates. |
| j | The y position in tile coordinates. |
| frameXAdjustment | The adjustment made to each Tile.frameX, defaults to 36 |
| manual | Set this to true to bypass the code playing the lock sound and adjusting the tile frame. Network syncing will still happen. |
Definition at line 587 of file ModTile.cs.