Package | Description |
---|---|
com.comphenix.protocol.events | |
com.comphenix.protocol.wrappers |
Modifier and Type | Method and Description |
---|---|
StructureModifier<java.util.List<ChunkPosition>> |
PacketContainer.getPositionCollectionModifier()
Retrieves a read/write structure for collections of chunk positions.
|
StructureModifier<ChunkPosition> |
PacketContainer.getPositionModifier()
Retrieves a read/write structure for chunk positions.
|
Modifier and Type | Field and Description |
---|---|
static ChunkPosition |
ChunkPosition.ORIGIN
Represents the null (0, 0, 0) origin.
|
Modifier and Type | Method and Description |
---|---|
ChunkPosition |
ChunkPosition.add(ChunkPosition other)
Adds the current position and a given position together, producing a result position.
|
ChunkPosition |
ChunkPosition.divide(int divisor)
Divide each dimension in the current position by the given divisor.
|
ChunkPosition |
ChunkPosition.multiply(int factor)
Multiply each dimension in the current position by the given factor.
|
ChunkPosition |
ChunkPosition.subtract(ChunkPosition other)
Adds the current position and a given position together, producing a result position.
|
ChunkPosition |
WrappedChunkCoordinate.toPosition()
Create an immutable chunk position from this coordinate.
|
Modifier and Type | Method and Description |
---|---|
static EquivalentConverter<ChunkPosition> |
ChunkPosition.getConverter()
Used to convert between NMS ChunkPosition and the wrapper instance.
|
Modifier and Type | Method and Description |
---|---|
ChunkPosition |
ChunkPosition.add(ChunkPosition other)
Adds the current position and a given position together, producing a result position.
|
ChunkPosition |
ChunkPosition.subtract(ChunkPosition other)
Adds the current position and a given position together, producing a result position.
|
Constructor and Description |
---|
WrappedChunkCoordinate(ChunkPosition position)
Create a chunk coordinate wrapper from a given position.
|