| Packages that use Vec | |
|---|---|
| pi | Protocol classes |
| pi.event | Use to react on events in the game |
| pi.tool | Tools with higher level functionality |
| Uses of Vec in pi |
|---|
| Subclasses of Vec in pi | |
|---|---|
static class |
Vec.Unit
A vector with length=1 |
| Fields in pi declared as Vec | |
|---|---|
static Vec |
Vec.ZERO
|
| Methods in pi that return Vec | |
|---|---|
Vec |
Vec.add(int x,
int y,
int z)
Add |
Vec |
Vec.add(Vec v)
Add |
Vec |
Minecraft.Player.getPosition()
|
Vec |
Minecraft.Entities.getPosition(int entityId)
|
Vec |
Vec.mul(int s)
Multiply with integer (scale) |
Vec |
Vec.neg()
Negate (multiply with -1) |
Vec |
Vec.sub(Vec v)
Subtract |
static Vec |
Vec.xyz(int x,
int y,
int z)
Create |
| Methods in pi with parameters of type Vec | |
|---|---|
Vec |
Vec.add(Vec v)
Add |
int |
Vec.dot(Vec v)
Scalar product |
Block |
Minecraft.getBlock(Vec position)
Get a block |
Block |
Minecraft.getBlockWithData(Vec position)
Get a block |
void |
Minecraft.setBlock(Vec position,
Block block)
Set a block |
void |
Minecraft.setBlocks(Vec begin,
Vec end,
Block block)
Set a cuboid of blocks |
void |
Minecraft.Entities.setPosition(int entityId,
Vec tile)
|
void |
Minecraft.Player.setPosition(Vec position)
|
Vec |
Vec.sub(Vec v)
Subtract |
| Uses of Vec in pi.event |
|---|
| Fields in pi.event declared as Vec | |
|---|---|
Vec |
BlockEvent.position
|
| Constructors in pi.event with parameters of type Vec | |
|---|---|
BlockEvent(Vec position)
|
|
BlockHitEvent(Vec position,
Vec.Unit surfaceDirection,
int entityId)
|
|
| Uses of Vec in pi.tool |
|---|
| Methods in pi.tool with parameters of type Vec | |
|---|---|
Text |
Text.at(Vec pos)
Set the position of the text |
Turtle |
Turtle.setHome(Vec home)
Set the turtle setHome pos |