touchups and docs

This commit is contained in:
gnembon committed 2019-07-02 09:08:27 -03:00
1 parent dca72f603b
commit b96e8e8da4
2 files changed
+8 -2

No files matched your search

@@ -349,14 +349,17 @@ public class BlockValue extends Value
this.sneakPlace = sneakPlace;
}
@Override
public BlockPos getBlockPos() {
return this.hit.getBlockPos();
}
@Override
public Direction getPlayerLookDirection() {
return facing.getOpposite();
}
@Override
public Direction[] getPlacementDirections() {
switch(this.facing) {
case DOWN:
@@ -375,14 +378,17 @@ public class BlockValue extends Value
}
}
@Override
public Direction getPlayerFacing() {
return this.facing.getAxis() == Direction.Axis.Y ? Direction.NORTH : this.facing;
}
@Override
public boolean isPlayerSneaking() {
return sneakPlace;
}
@Override
public float getPlayerYaw() {
return (float)(this.facing.getHorizontal() * 90);
}