Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ContainerTransferContext.cs
Go to the documentation of this file.
2
4
6{
8
10
12 {
13 return new ContainerTransferContext(projectile.Center);
14 }
15
16 public static ContainerTransferContext FromBlockPosition(int x, int y)
17 {
18 return new ContainerTransferContext(new Vector2(x * 16 + 16, y * 16 + 16));
19 }
20
22 {
24 result.CanVisualizeTransfers = false;
25 return result;
26 }
27
29 {
30 _position = position;
32 }
33
35 {
36 return _position;
37 }
38}
Vector2 Center
Definition Entity.cs:43
static ContainerTransferContext FromUnknown(Player player)
static ContainerTransferContext FromProjectile(Projectile projectile)
static ContainerTransferContext FromBlockPosition(int x, int y)