Package | Description |
---|---|
pi |
Protocol classes
|
pi.event |
Use to react on events in the game
|
pi.tool |
Tools with higher level functionality
|
Modifier and Type | Class and Description |
---|---|
class |
VecUnit
A unit vector is a vector of length equal to one.
|
Modifier and Type | Field and Description |
---|---|
static Vec |
Vec.ZERO |
Modifier and Type | Method and Description |
---|---|
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
|
Modifier and Type | Method and Description |
---|---|
Vec |
Vec.add(Vec v)
Add
|
int |
Vec.dot(Vec v)
Scalar product
|
Block |
Minecraft.getBlock(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
|
Modifier and Type | Field and Description |
---|---|
Vec |
BlockEvent.position |
Constructor and Description |
---|
BlockEvent(Vec position) |
BlockHitEvent(Vec position,
VecUnit surfaceDirection,
int entityId) |
Modifier and Type | Method and Description |
---|---|
Text |
Text.at(Vec pos)
Set the position of the text
|
Turtle |
Turtle.setHome(Vec home)
Set the turtle setHome pos
|