BlockPos
Namespace Mc.Scripting · Kind struct
public struct BlockPos : IEquatable<BlockPos>Integer block coordinates.
Constructors
Section titled “Constructors”| Member | Description |
|---|---|
BlockPos(int x, int y, int z) |
Creates a block position. |
Constructor
Section titled “Constructor”public BlockPos(int x, int y, int z)Creates a block position.
Parameters
| Name | Type | Description |
|---|---|---|
x |
int |
|
y |
int |
|
z |
int |
Fields
Section titled “Fields”| Member | Description |
|---|---|
int X |
Components. |
int Y |
Components. |
int Z |
Components. |
public int X;Components.
public int Y;Components.
public int Z;Components.
Methods
Section titled “Methods”| Member | Description |
|---|---|
bool Equals(BlockPos o) |
Equality. |
override bool Equals(object? obj) |
Equality. |
override int GetHashCode() |
Hash code. |
override string ToString() |
Text form. |
Equals
Section titled “Equals”public bool Equals(BlockPos o)Equality.
Parameters
| Name | Type | Description |
|---|---|---|
o |
BlockPos |
Returns bool
Equals
Section titled “Equals”public override bool Equals(object? obj)Equality.
Parameters
| Name | Type | Description |
|---|---|---|
obj |
object? |
Returns bool
GetHashCode
Section titled “GetHashCode”public override int GetHashCode()Hash code.
Returns int
ToString
Section titled “ToString”public override string ToString()Text form.
Returns string